lol

Merge pull request #142612 from SuperSandro2000/diffoscope

diffoscope: enable all available tools

authored by

Maximilian Bosch and committed by
GitHub
d448615f 879a68d2

+162 -8
+6 -1
pkgs/development/python-modules/pdfminer_six/default.nix
··· 6 6 7 7 disabled = !isPy3k; 8 8 9 - # No tests in PyPi Tarball 10 9 src = fetchFromGitHub { 11 10 owner = "pdfminer"; 12 11 repo = "pdfminer.six"; ··· 15 14 }; 16 15 17 16 propagatedBuildInputs = [ chardet cryptography sortedcontainers ]; 17 + 18 + postInstall = '' 19 + for file in $out/bin/*.py; do 20 + ln $file ''${file//.py/} 21 + done 22 + ''; 18 23 19 24 checkInputs = [ nose ]; 20 25 checkPhase = ''
+7 -7
pkgs/tools/misc/diffoscope/default.nix
··· 1 1 { lib, stdenv, fetchurl, python3Packages, docutils, help2man, installShellFiles 2 2 , abootimg, acl, apksigner, apktool, binutils-unwrapped, bzip2, cbfstool, cdrkit, colord, colordiff, coreutils, cpio, db, diffutils, dtc 3 - , e2fsprogs, file, findutils, fontforge-fonttools, ffmpeg, fpc, gettext, ghc, ghostscriptX, giflib, gnumeric, gnupg, gnutar 4 - , gzip, hdf5, imagemagick, jdk, libarchive, libcaca, llvm, lz4, mono, openssh, openssl, pdftk, pgpdump, poppler_utils, qemu, R 5 - , radare2, sng, sqlite, squashfsTools, tcpdump, odt2txt, unzip, wabt, xxd, xz, zip, zstd 3 + , e2fsprogs, enjarify, file, findutils, fontforge-fonttools, ffmpeg, fpc, gettext, ghc, ghostscriptX, giflib, gnumeric, gnupg, gnutar 4 + , gzip, hdf5, imagemagick, jdk, libarchive, libcaca, llvm, lz4, mono, ocaml, oggvideotools, openssh, openssl, pdftk, pgpdump, poppler_utils, procyon, qemu, R 5 + , radare2, sng, sqlite, squashfsTools, tcpdump, ubootTools, odt2txt, unzip, wabt, xmlbeans, xxd, xz, zip, zstd 6 6 , enableBloat ? false 7 7 }: 8 8 ··· 40 40 # Most of the non-Python dependencies here are optional command-line tools for various file-format parsers. 41 41 # To help figuring out what's missing from the list, run: ./pkgs/tools/misc/diffoscope/list-missing-tools.sh 42 42 # 43 - # Still missing these tools: docx2txt dumpimage dumppdf dumpxsb enjarify lipo ocamlobjinfo oggDump otool procyon 43 + # Still missing these tools: docx2txt lipo otool r2pipe 44 44 pythonPath = [ 45 45 binutils-unwrapped bzip2 colordiff coreutils cpio db diffutils 46 46 e2fsprogs file findutils fontforge-fonttools gettext gnutar gzip ··· 53 53 ]) 54 54 ++ lib.optionals stdenv.isLinux [ python3Packages.pyxattr acl cdrkit dtc ] 55 55 ++ lib.optionals enableBloat ([ 56 - abootimg apksigner apktool cbfstool colord ffmpeg fpc ghc ghostscriptX giflib gnupg gnumeric 57 - hdf5 imagemagick llvm jdk mono odt2txt openssh pdftk poppler_utils qemu R tcpdump wabt radare2 58 - ] ++ (with python3Packages; [ binwalk guestfs h5py ])); 56 + abootimg apksigner apktool cbfstool colord enjarify ffmpeg fpc ghc ghostscriptX giflib gnupg gnumeric 57 + hdf5 imagemagick llvm jdk mono ocaml odt2txt oggvideotools openssh pdftk poppler_utils procyon qemu R tcpdump ubootTools wabt radare2 xmlbeans 58 + ] ++ (with python3Packages; [ androguard binwalk guestfs h5py pdfminer ])); 59 59 60 60 checkInputs = with python3Packages; [ pytestCheckHook ] ++ pythonPath; 61 61
+35
pkgs/tools/misc/enjarify/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, python3, runtimeShell }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "enjarify"; 5 + version = "1.0.3"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "google"; 9 + repo = pname; 10 + rev = version; 11 + sha256 = "sha256-VDBC5n2jWLNJsilX+PV1smL5JeBDj23jYFRwdObXwYs="; 12 + }; 13 + 14 + installPhase = '' 15 + pypath="$out/${python3.sitePackages}" 16 + mkdir -p $out/bin $pypath 17 + mv enjarify $pypath 18 + 19 + cat << EOF > $out/bin/enjarify 20 + #!${runtimeShell} 21 + export PYTHONPATH=$pypath 22 + exec ${python3.interpreter} -O -m enjarify.main "\$@" 23 + EOF 24 + chmod +x $out/bin/enjarify 25 + ''; 26 + 27 + buildInputs = [ ]; 28 + 29 + meta = with lib; { 30 + description = "Tool for translating Dalvik bytecode to equivalent Java bytecode"; 31 + homepage = "https://github.com/google/enjarify/"; 32 + license = licenses.asl20; 33 + maintainers = with maintainers; [ SuperSandro2000 ]; 34 + }; 35 + }
+26
pkgs/tools/misc/oggvideotools/default.nix
··· 1 + { lib, stdenv, fetchurl, cmake, pkg-config, boost, gd, libogg, libtheora, libvorbis }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "oggvideotools"; 5 + version = "0.9.1"; 6 + 7 + src = fetchurl { 8 + url = "mirror://sourceforge/oggvideotools/oggvideotools/oggvideotools-${version}/oggvideotools-${version}.tar.bz2"; 9 + sha256 = "sha256-2dv3iXt86phhIgnYC5EnRzyX1u5ssNzPwrOP4+jilSM="; 10 + }; 11 + 12 + patches = [ 13 + ./fix-compile.patch 14 + ]; 15 + 16 + nativeBuildInputs = [ cmake pkg-config ]; 17 + 18 + buildInputs = [ boost gd libogg libtheora libvorbis ]; 19 + 20 + meta = with lib; { 21 + description = "Toolbox for manipulating and creating Ogg video files"; 22 + homepage = "http://www.streamnik.de/oggvideotools.html"; 23 + license = licenses.gpl2Only; 24 + maintainers = with maintainers; [ SuperSandro2000 ]; 25 + }; 26 + }
+10
pkgs/tools/misc/oggvideotools/fix-compile.patch
··· 1 + --- oggvideotools-0.9.1/src/base/test/decoderTest.cpp 2016-09-05 10:35:14.000000000 +0200 2 + +++ oggvideotools-0.9.1/src/base/test/decoderTest.cpp 2021-10-22 22:42:48.980473419 +0200 3 + @@ -5,6 +5,7 @@ 4 + #include "oggDecoder.h" 5 + #include <vector> 6 + #include <iostream> 7 + +#include <cstring> 8 + 9 + int main(int argc, char* argv[]) 10 + {
+31
pkgs/tools/misc/procyon/default.nix
··· 1 + { lib, stdenv, fetchurl, runtimeShell, jre_headless }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "procyon"; 5 + version = "0.6-prerelease"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/mstrobel/procyon/releases/download/${version}/procyon-decompiler-${version}.jar"; 9 + sha256 = "sha256-eBVWKCo8ccAT/T9HgjxUCNFzGyzofc9Mbyp0ldUmrdk="; 10 + }; 11 + 12 + dontUnpack = true; 13 + 14 + installPhase = '' 15 + mkdir -p $out/bin $out/share/procyon 16 + cp $src $out/share/procyon/procyon-decompiler.jar 17 + 18 + cat << EOF > $out/bin/procyon 19 + #!${runtimeShell} 20 + exec ${jre_headless}/bin/java -jar $out/share/procyon/procyon-decompiler.jar "\$@" 21 + EOF 22 + chmod +x $out/bin/procyon 23 + ''; 24 + 25 + meta = with lib; { 26 + description = "Procyon is a suite of Java metaprogramming tools including a Java decompiler"; 27 + homepage = "https://github.com/mstrobel/procyon/"; 28 + license = licenses.asl20; 29 + maintainers = with maintainers; [ SuperSandro2000 ]; 30 + }; 31 + }
+39
pkgs/tools/misc/xmlbeans/default.nix
··· 1 + { lib, stdenv, fetchzip, jre_headless }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "xmlbeans"; 5 + version = "5.0.2-20211014"; 6 + 7 + src = fetchzip { 8 + url = "https://dlcdn.apache.org/poi/xmlbeans/release/bin/xmlbeans-bin-${version}.zip"; 9 + sha256 = "sha256-1o0kfBMhka/Midtg+GzpVDDygixL6mrfxtY5WrjLN+0="; 10 + }; 11 + 12 + postPatch = '' 13 + rm bin/*.cmd 14 + substituteInPlace bin/dumpxsb \ 15 + --replace 'echo `dirname $0`' "" 16 + 17 + substituteInPlace bin/_setlib \ 18 + --replace 'echo XMLBEANS_LIB=$XMLBEANS_LIB' "" 19 + 20 + for file in bin/*; do 21 + substituteInPlace $file \ 22 + --replace "java " "${jre_headless}/bin/java " 23 + done 24 + ''; 25 + 26 + installPhase = '' 27 + mkdir -p $out 28 + chmod +x bin/* 29 + cp -r bin/ lib/ $out/ 30 + ''; 31 + 32 + meta = with lib; { 33 + description = "Java library for accessing XML by binding it to Java types"; 34 + homepage = "https://xmlbeans.apache.org/"; 35 + downloadPage = "https://dlcdn.apache.org/poi/xmlbeans/release/bin/"; 36 + license = licenses.asl20; 37 + maintainers = with maintainers; [ SuperSandro2000 ]; 38 + }; 39 + }
+8
pkgs/top-level/all-packages.nix
··· 1271 1271 1272 1272 artyFX = callPackage ../applications/audio/artyFX {}; 1273 1273 1274 + oggvideotools = callPackage ../tools/misc/oggvideotools { }; 1275 + 1274 1276 owl-lisp = callPackage ../development/compilers/owl-lisp {}; 1275 1277 1276 1278 ascii = callPackage ../tools/text/ascii { }; ··· 1625 1627 }; 1626 1628 1627 1629 enchive = callPackage ../tools/security/enchive { }; 1630 + 1631 + enjarify = callPackage ../tools/misc/enjarify { }; 1628 1632 1629 1633 enpass = callPackage ../tools/security/enpass { }; 1630 1634 ··· 3418 3422 inherit (darwin) libiconv; 3419 3423 }; 3420 3424 3425 + procyon = callPackage ../tools/misc/procyon { }; 3426 + 3421 3427 profetch = callPackage ../tools/misc/profetch { }; 3422 3428 3423 3429 psrecord = python3Packages.callPackage ../tools/misc/psrecord {}; ··· 3568 3574 hiredis = null; 3569 3575 libmaxminddb = null; 3570 3576 }; 3577 + 3578 + xmlbeans = callPackage ../tools/misc/xmlbeans { }; 3571 3579 3572 3580 xmlsort = perlPackages.XMLFilterSort; 3573 3581