diffoscope: Document the script to locate missing optional dependencies

And give it it a bit more descriptive name of list-missing-tools.sh.
This commit is contained in:
Tuomas Tynkkynen 2018-07-19 02:31:23 +03:00
parent 0a46f8c198
commit a595896c56
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@
, enableBloat ? false
}:
# Note: when upgrading this package, please run the list-missing-tools.sh script as described below!
python3Packages.buildPythonApplication rec {
name = "diffoscope-${version}";
version = "99";
@ -30,6 +31,9 @@ python3Packages.buildPythonApplication rec {
nativeBuildInputs = [ docutils help2man ];
# Most of the non-Python dependencies here are optional command-line tools for various file-format parsers.
# To help figuring out what's missing from the list, run: ./pkgs/tools/misc/diffoscope/list-missing-tools.sh
#
# Still missing these tools: abootimg docx2txt dumpxsb enjarify js-beautify lipo oggDump otool procyon-decompiler Rscript
# Also these libraries: python3-guestfs
pythonPath = with python3Packages; [ debian libarchive-c python_magic tlsh rpm ] ++ [

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
# This script lists all the optional command-line tools that diffoscope can use
# (i.e. `diffoscope --list-tools`) but are missing from the Nix expression.
diffoscope=$(nix-build --no-out-link -E 'with import ./. {}; diffoscope.override { enableBloat = true; }')/bin/diffoscope
required=$($diffoscope --list-tools | \