2020-05-03 07:53:44 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, fuse, glib, zlib }:
|
2015-08-30 12:15:06 +02:00
|
|
|
|
2020-05-03 07:53:44 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fuseiso";
|
|
|
|
version = "20070708";
|
2015-08-30 12:15:06 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-05-03 07:53:44 +02:00
|
|
|
url = "mirror://sourceforge/project/fuseiso/fuseiso/${version}/fuseiso-${version}.tar.bz2";
|
2016-09-25 17:22:01 +02:00
|
|
|
sha256 = "127xql52dcdhmh7s5m9xc6q39jdlj3zhbjar1j821kb6gl3jw94b";
|
2015-08-30 12:15:06 +02:00
|
|
|
};
|
|
|
|
|
2020-05-06 23:18:09 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-05-03 07:53:44 +02:00
|
|
|
name = "00-support_large_iso.patch";
|
2020-05-06 23:18:09 +02:00
|
|
|
url = "https://sources.debian.net/data/main/f/fuseiso/${version}-3.2/debian/patches/00-support_large_iso.patch";
|
2016-09-25 17:22:01 +02:00
|
|
|
sha256 = "1lmclb1qwzz5f4wlq693g83bblwnjjl73qhgfxbsaac5hnn2shjw";
|
2020-05-06 23:18:09 +02:00
|
|
|
})
|
|
|
|
(fetchpatch {
|
2020-05-03 07:53:44 +02:00
|
|
|
name = "01-fix_typo.patch";
|
2020-05-06 23:18:09 +02:00
|
|
|
url = "https://sources.debian.net/data/main/f/fuseiso/${version}-3.2/debian/patches/01-fix_typo.patch";
|
2020-05-03 07:53:44 +02:00
|
|
|
sha256 = "14rpxp0yylzsgqv0r19l4wx1h5hvqp617gpv1yg0w48amr9drasa";
|
2020-05-06 23:18:09 +02:00
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "02-prevent-buffer-overflow_CVE-2015-8837.patch";
|
|
|
|
url = "https://sources.debian.net/data/main/f/fuseiso/${version}-3.2/debian/patches/02-prevent-buffer-overflow.patch";
|
2016-09-25 17:22:01 +02:00
|
|
|
sha256 = "1ls2pp3mh91pdb51qz1fsd8pwhbky6988bpd156bn7wgfxqzh8ig";
|
2020-05-06 23:18:09 +02:00
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "03-prevent-integer-overflow_CVE-2015-8836.patch";
|
|
|
|
url = "https://sources.debian.net/data/main/f/fuseiso/${version}-3.2/debian/patches/03-prevent-integer-overflow.patch";
|
2016-09-25 17:22:01 +02:00
|
|
|
sha256 = "100cw07fk4sa3hl7a1gk2hgz4qsxdw99y20r7wpidwwwzy463zcv";
|
2020-05-06 23:18:09 +02:00
|
|
|
})
|
2016-09-25 17:22:01 +02:00
|
|
|
];
|
|
|
|
|
2020-05-03 07:53:44 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ fuse glib zlib ];
|
|
|
|
|
|
|
|
# after autoreconfHook, glib and zlib are not found, so force link against
|
|
|
|
# them
|
|
|
|
NIX_LDFLAGS = "-lglib-2.0 -lz";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} NEWS README
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-08-30 12:15:06 +02:00
|
|
|
description = "FUSE module to mount ISO filesystem images";
|
2020-05-03 07:53:44 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/fuseiso";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-08-30 12:15:06 +02:00
|
|
|
};
|
|
|
|
}
|