summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-07-21 13:40:23 +0100
committerGitHub <noreply@github.com>2017-07-21 13:40:23 +0100
commite66195d39ba3f086515dce8a4c9f2a56329bf234 (patch)
treef0cd2450b2c472e4ca01668f329870bb84852621 /pkgs
parent45cc3fdac9cf92f8265d828dd5575a166f071610 (diff)
parent23ad77b9980fdd7f943da38cd745c4ccfdda15a7 (diff)
Merge pull request #27534 from KaiHa/master
diffoscope: wrap executable and include tools in PATH
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/diffoscope/default.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix
index 4f0a9ba12c11..37af52f55b63 100644
--- a/pkgs/tools/misc/diffoscope/default.nix
+++ b/pkgs/tools/misc/diffoscope/default.nix
@@ -5,7 +5,13 @@
, enableBloat ? false
}:
-python3.pkgs.buildPythonApplication rec {
+ # Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf
+ # Also these libraries: python3-guestfs
+ # FIXME: move xxd into a separate package so we don't have to pull in all of vim.
+let tools = [ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext
+ gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz colordiff
+ ] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ];
+in python3.pkgs.buildPythonApplication rec {
pname = "diffoscope";
name = "${pname}-${version}";
version = "77";
@@ -26,14 +32,6 @@ python3.pkgs.buildPythonApplication rec {
sed -i setup.py -e "/'rpm-python',/d"
'';
- # Still missing these tools: enjarify, otool & lipo (maybe OS X only), showttf
- # Also these libraries: python3-guestfs
- # FIXME: move xxd into a separate package so we don't have to pull in all of vim.
- buildInputs =
- map lib.getBin ([ acl binutils bzip2 cbfstool cdrkit cpio diffutils e2fsprogs file gettext
- gzip libcaca poppler_utils sng sqlite squashfsTools unzip vim xz colordiff
- ] ++ lib.optionals enableBloat [ colord fpc ghc gnupg1 jdk mono pdftk ]);
-
pythonPath = with python3.pkgs; [ debian libarchive-c python_magic tlsh rpm ];
doCheck = false; # Calls 'mknod' in squashfs tests, which needs root
@@ -41,6 +39,7 @@ python3.pkgs.buildPythonApplication rec {
postInstall = ''
mkdir -p $out/share/man/man1
${docutils}/bin/rst2man.py debian/diffoscope.1.rst $out/share/man/man1/diffoscope.1
+ wrapProgram $out/bin/diffoscope --prefix PATH : ${lib.makeBinPath tools}
'';
meta = with stdenv.lib; {