Skip to content

Commit

Permalink
diffoscope: 87 -> 90
Browse files Browse the repository at this point in the history
  • Loading branch information
dezgeg committed Jan 27, 2018
1 parent e39f211 commit 355a6ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/tools/misc/diffoscope/default.nix
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, python3Packages, docutils
{ lib, stdenv, fetchgit, python3Packages, docutils, help2man
, acl, apktool, libbfd, bzip2, cbfstool, cdrkit, colord, colordiff, coreutils, cpio, diffutils, dtc
, e2fsprogs, file, findutils, fontforge-fonttools, fpc, gettext, ghc, ghostscriptX, giflib, gnupg1, gnutar
, gzip, imagemagick, jdk, libarchive, libcaca, llvm, mono, openssh, pdftk, pgpdump, poppler_utils, sng, sqlite
Expand All @@ -8,12 +8,12 @@

python3Packages.buildPythonApplication rec {
name = "diffoscope-${version}";
version = "87";
version = "90";

src = fetchgit {
url = "git://anonscm.debian.org/reproducible/diffoscope.git";
rev = "refs/tags/${version}";
sha256 = "0j3pljwmggrpaghbamvr24x4cg5yj7hl2ll27405p7970scnpngv";
sha256 = "1w16667j6ag2iim1xcy8y9v9965mq50k64wnf693mivddll62704";
};

patches = [
Expand All @@ -25,6 +25,8 @@ python3Packages.buildPythonApplication rec {
sed -i setup.py -e "/'rpm-python',/d"
'';

nativeBuildInputs = [ docutils help2man ];

# Still missing these tools: docx2txt enjarify js-beautify oggDump Rscript
# Also these libraries: python3-guestfs
pythonPath = with python3Packages; [ debian libarchive-c python_magic tlsh rpm ] ++ [
Expand All @@ -37,10 +39,12 @@ python3Packages.buildPythonApplication rec {
];

doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
checkInputs = with python3Packages; [ pytest ];

postInstall = ''
make -C doc
mkdir -p $out/share/man/man1
${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1
cp doc/diffoscope.1 $out/share/man/man1/diffoscope.1
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 355a6ca

Please sign in to comment.