Files
nixpkgs/pkgs/by-name/dt/dtrx/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
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";
version = "8.5.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "dtrx-py";
repo = "dtrx";
rev = version;
sha256 = "sha256-LB3F6jcqQPRsjFO4L2fPAPnacDAdtcaadgGbwXA9LAw=";
};
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
);
in
[
''--prefix PATH : "${archivers}"''
];
build-system = with python3Packages; [
setuptools
];
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;
maintainers = [ ];
mainProgram = "dtrx";
};
}