nixpkgs/pkgs/tools/compression/dtrx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
2023-07-31 00:24:08 +00:00
, gitUpdater
, python3Packages
, gnutar
, unzip
, lhasa
, rpm
, binutils
, cpio
, gzip
, p7zip
, cabextract
, unrar
, unshield
, bzip2
, xz
, lzip
, unzipSupport ? false
, unrarSupport ? false
}:
python3Packages.buildPythonApplication rec {
pname = "dtrx";
2023-07-31 00:24:08 +00:00
version = "8.5.3";
src = fetchFromGitHub {
owner = "dtrx-py";
repo = "dtrx";
2023-07-31 00:24:08 +00:00
rev = version;
sha256 = "sha256-LB3F6jcqQPRsjFO4L2fPAPnacDAdtcaadgGbwXA9LAw=";
};
2023-07-31 00:30:39 +00:00
makeWrapperArgs =
let
archivers = lib.makeBinPath (
[ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield bzip2 xz lzip ]
++ lib.optional (unzipSupport) unzip
++ lib.optional (unrarSupport) unrar
);
2023-07-31 00:30:39 +00:00
in [
''--prefix PATH : "${archivers}"''
];
nativeBuildInputs = [ python3Packages.invoke ];
2023-07-31 00:24:08 +00:00
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";
homepage = "https://github.com/dtrx-py/dtrx";
license = licenses.gpl3Plus;
2023-05-05 12:34:05 +00:00
maintainers = [ ];
2023-11-23 02:51:17 +00:00
mainProgram = "dtrx";
};
}