Merge pull request #11992 from dezgeg/pr-update-diffoscope

diffoscope: 29 -> 44

+43 -14
+10 -13
pkgs/tools/misc/diffoscope/default.nix
··· 1 { stdenv, fetchgit, pythonPackages, docutils 2 - , acl, binutils, bzip2, cdrkit, cpio, diffutils, e2fsprogs, file, gettext 3 - , gnupg, gzip, pdftk, poppler_utils, rpm, sqlite, squashfsTools, unzip, vim, xz 4 }: 5 6 pythonPackages.buildPythonPackage rec { 7 name = "diffoscope-${version}"; 8 - version = "29"; 9 10 namePrefix = ""; 11 12 src = fetchgit { 13 url = "git://anonscm.debian.org/reproducible/diffoscope.git"; 14 rev = "refs/tags/${version}"; 15 - sha256 = "0q7hx2wm9gvzl1f7iilr9pjwpv8i2anscqan7cgk80v90s2pakrf"; 16 }; 17 18 postPatch = '' 19 - # Different pkg name in debian 20 - sed -i setup.py -e "s@'magic'@'Magic-file-extensions'@" 21 - 22 # Upstream doesn't provide a PKG-INFO file 23 - sed -i setup.py -e "/'rpm',/d" 24 ''; 25 26 - # Still missing these tools: ghc javap showttf sng 27 - propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c magic ssdeep ]) ++ 28 - [ acl binutils bzip2 cdrkit cpio diffutils e2fsprogs file gettext gnupg 29 - gzip pdftk poppler_utils rpm sqlite squashfsTools unzip vim xz ]; 30 31 doCheck = false; # Calls 'mknod' in squashfs tests, which needs root 32 33 postInstall = '' 34 - mv $out/bin/diffoscope.py $out/bin/diffoscope 35 mkdir -p $out/share/man/man1 36 ${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1 37 '';
··· 1 { stdenv, fetchgit, pythonPackages, docutils 2 + , acl, binutils, bzip2, cbfstool, cdrkit, cpio, diffutils, e2fsprogs, file, fpc, gettext, ghc, gnupg1 3 + , gzip, jdk, libcaca, mono, pdftk, poppler_utils, rpm, sng, sqlite, squashfsTools, unzip, vim, xz 4 }: 5 6 pythonPackages.buildPythonPackage rec { 7 name = "diffoscope-${version}"; 8 + version = "44"; 9 10 namePrefix = ""; 11 12 src = fetchgit { 13 url = "git://anonscm.debian.org/reproducible/diffoscope.git"; 14 rev = "refs/tags/${version}"; 15 + sha256 = "1sisdmh1bl62b16yfjy9mxxdfzhskrabp0l3pl1kxn7db0c4vpac"; 16 }; 17 18 postPatch = '' 19 # Upstream doesn't provide a PKG-INFO file 20 + sed -i setup.py -e "/'rpm-python',/d" 21 ''; 22 23 + # Still missing these tools: enjarify otool(maybe OS X only) showttf 24 + # Also these libraries: python3-guestfs 25 + propagatedBuildInputs = (with pythonPackages; [ debian libarchive-c python_magic tlsh ]) ++ 26 + [ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file fpc gettext ghc gnupg1 27 + gzip jdk libcaca mono pdftk poppler_utils rpm sng sqlite squashfsTools unzip vim xz ]; 28 29 doCheck = false; # Calls 'mknod' in squashfs tests, which needs root 30 31 postInstall = '' 32 mkdir -p $out/share/man/man1 33 ${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1 34 '';
+5
pkgs/tools/package-management/rpm/default.nix
··· 16 17 NIX_CFLAGS_LINK = "-L${elfutils}/lib"; 18 19 configureFlags = "--with-external-db --without-lua --enable-python"; 20 21 meta = with stdenv.lib; {
··· 16 17 NIX_CFLAGS_LINK = "-L${elfutils}/lib"; 18 19 + postPatch = '' 20 + # For Python3, the original expression evaluates as 'python3.4' but we want 'python3.4m' here 21 + substituteInPlace configure --replace 'python''${PYTHON_VERSION}' ${python.executable} 22 + ''; 23 + 24 configureFlags = "--with-external-db --without-lua --enable-python"; 25 26 meta = with stdenv.lib; {
+5 -1
pkgs/top-level/all-packages.nix
··· 1292 1293 di = callPackage ../tools/system/di { }; 1294 1295 - diffoscope = callPackage ../tools/misc/diffoscope { }; 1296 1297 diffstat = callPackage ../tools/text/diffstat { }; 1298
··· 1292 1293 di = callPackage ../tools/system/di { }; 1294 1295 + diffoscope = callPackage ../tools/misc/diffoscope { 1296 + jdk = jdk7; 1297 + pythonPackages = python3Packages; 1298 + rpm = rpm.override { python = python3; }; 1299 + }; 1300 1301 diffstat = callPackage ../tools/text/diffstat { }; 1302
+23
pkgs/top-level/python-packages.nix
··· 21910 }; 21911 }; 21912 21913 toposort = buildPythonPackage rec { 21914 name = "toposort-${version}"; 21915 version = "1.1";
··· 21910 }; 21911 }; 21912 21913 + tlsh = buildPythonPackage rec { 21914 + name = "tlsh-3.4.1"; 21915 + src = pkgs.fetchFromGitHub { 21916 + owner = "trendmicro"; 21917 + repo = "tlsh"; 21918 + rev = "b319aed6a270cc765347296b442820c495018833"; 21919 + sha256 = "08ysniihvidcyvh9zip64wwvj7mvxvsqs60ci8cxj28f1ip0n8wg"; 21920 + }; 21921 + buildInputs = with pkgs; [ cmake ]; 21922 + preConfigure = '' 21923 + mkdir build 21924 + cd build 21925 + cmake .. 21926 + cd ../py_ext 21927 + ''; 21928 + meta = with stdenv.lib; { 21929 + description = "Trend Micro Locality Sensitive Hash"; 21930 + homepage = https://github.com/trendmicro/tlsh; 21931 + license = licenses.asl20; 21932 + platforms = platforms.linux; 21933 + }; 21934 + }; 21935 + 21936 toposort = buildPythonPackage rec { 21937 name = "toposort-${version}"; 21938 version = "1.1";