From c1cd33667c5eaa0eec5d9fe1453ab2ab7c86c8f7 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 9 Dec 2023 00:01:00 +0100 Subject: [PATCH 1/3] diffoscope: add `acl` in the minimal package `acl` is a pretty ubiquitious package on Linux and provides `getfacl`. --- pkgs/tools/misc/diffoscope/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 61617044792b..76017127b1c1 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , abootimg +, acl , apksigcopier , apksigner , apktool @@ -115,13 +116,13 @@ python3.pkgs.buildPythonApplication rec { # aapt2 # dexdump # docx2txt - # getfacl # lipo # otool # r2pipe # # We filter automatically all packages for the host platform (some dependencies are not supported on Darwin, aarch64, etc.). pythonPath = lib.filter (lib.meta.availableOn stdenv.hostPlatform) ([ + acl binutils-unwrapped-all-targets bzip2 cdrkit From 61da111d6f3cce9f81103d584ccf183ab867f463 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 9 Dec 2023 00:01:31 +0100 Subject: [PATCH 2/3] diffoscope: 252 -> 253 https://diffoscope.org/news/diffoscope-253-released/ --- pkgs/tools/misc/diffoscope/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 76017127b1c1..5fda0d8f577f 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -79,11 +79,11 @@ # Note: when upgrading this package, please run the list-missing-tools.sh script as described below! python3.pkgs.buildPythonApplication rec { pname = "diffoscope"; - version = "252"; + version = "253"; src = fetchurl { url = "https://diffoscope.org/archive/diffoscope-${version}.tar.bz2"; - hash = "sha256-NmYv5htZT2v04vVksIWGuaPI1rXfNmrVSmErT/faBbQ="; + hash = "sha256-xI+SIEUPKFxz7sk9qqE1ibSJX0WRPnJEpco0Mqv7Wp8="; }; outputs = [ @@ -118,7 +118,6 @@ python3.pkgs.buildPythonApplication rec { # docx2txt # lipo # otool - # r2pipe # # We filter automatically all packages for the host platform (some dependencies are not supported on Darwin, aarch64, etc.). pythonPath = lib.filter (lib.meta.availableOn stdenv.hostPlatform) ([ From 4e9e090585ae52dc7b836477dc83c7107052d66b Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 9 Dec 2023 00:02:05 +0100 Subject: [PATCH 3/3] diffoscope: organize better missing tools and explain why docx2txt cannot be added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docx2txt is *IN* nixpkgs but cannot be used. lipo, otool are theoretically available in darling… but I doubt they would work. --- pkgs/tools/misc/diffoscope/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix index 5fda0d8f577f..4636266e0279 100644 --- a/pkgs/tools/misc/diffoscope/default.nix +++ b/pkgs/tools/misc/diffoscope/default.nix @@ -113,11 +113,16 @@ python3.pkgs.buildPythonApplication rec { # To help figuring out what's missing from the list, run: ./pkgs/tools/misc/diffoscope/list-missing-tools.sh # # Still missing these tools: + # Android-specific tools: # aapt2 # dexdump - # docx2txt + # Darwin-specific tools: # lipo # otool + # Other tools: + # docx2txt <- makes tests broken: + # > FAILED tests/comparators/test_docx.py::test_diff - IndexError: list index out of range + # > FAILED tests/comparators/test_docx.py::test_compare_non_existing - AssertionError # # We filter automatically all packages for the host platform (some dependencies are not supported on Darwin, aarch64, etc.). pythonPath = lib.filter (lib.meta.availableOn stdenv.hostPlatform) ([ @@ -209,6 +214,7 @@ python3.pkgs.buildPythonApplication rec { guestfs h5py pdfminer-six + # docx2txt, breaks the tests. ]) # oggvideotools is broken on Darwin, please put it back when it will be fixed? ++ lib.optionals stdenv.isLinux [ oggvideotools ]