Merge pull request #246282 from uninsane/pr/dtrx-8.5.3

authored by Artturi and committed by GitHub dce16c6a b5f77af4

+10 -7
+10 -7
pkgs/tools/compression/dtrx/default.nix
··· 1 { lib 2 , fetchFromGitHub 3 , python3Packages 4 , gnutar 5 , unzip ··· 21 22 python3Packages.buildPythonApplication rec { 23 pname = "dtrx"; 24 - version = "8.5.1"; 25 26 src = fetchFromGitHub { 27 owner = "dtrx-py"; 28 repo = "dtrx"; 29 - rev = "refs/tags/${version}"; 30 - sha256 = "sha256-KOHafmvl17IABlcBuE7isHVCIYRbA68Dna6rgiiWlkQ="; 31 }; 32 33 - postInstall = 34 let 35 archivers = lib.makeBinPath ( 36 [ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield bzip2 xz lzip ] 37 ++ lib.optional (unzipSupport) unzip 38 ++ lib.optional (unrarSupport) unrar 39 ); 40 - in '' 41 - wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}" 42 - ''; 43 44 nativeBuildInputs = [ python3Packages.invoke ]; 45 46 meta = with lib; { 47 description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";
··· 1 { lib 2 , fetchFromGitHub 3 + , gitUpdater 4 , python3Packages 5 , gnutar 6 , unzip ··· 22 23 python3Packages.buildPythonApplication rec { 24 pname = "dtrx"; 25 + version = "8.5.3"; 26 27 src = fetchFromGitHub { 28 owner = "dtrx-py"; 29 repo = "dtrx"; 30 + rev = version; 31 + sha256 = "sha256-LB3F6jcqQPRsjFO4L2fPAPnacDAdtcaadgGbwXA9LAw="; 32 }; 33 34 + makeWrapperArgs = 35 let 36 archivers = lib.makeBinPath ( 37 [ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield bzip2 xz lzip ] 38 ++ lib.optional (unzipSupport) unzip 39 ++ lib.optional (unrarSupport) unrar 40 ); 41 + in [ 42 + ''--prefix PATH : "${archivers}"'' 43 + ]; 44 45 nativeBuildInputs = [ python3Packages.invoke ]; 46 + 47 + passthru.updateScript = gitUpdater { }; 48 49 meta = with lib; { 50 description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";