1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/compression/dtrx/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

2016-11-10 14:41:20 +00:00
{stdenv, lib, fetchurl, pythonPackages
, gnutar, unzip, lhasa, rpm, binutils, cpio, gzip, p7zip, cabextract, unrar, unshield
, bzip2, xz, lzip
# unzip is handled by p7zip
, unzipSupport ? false
, unrarSupport ? false }:
2015-01-06 19:33:53 +00:00
2016-11-10 14:41:20 +00:00
let
archivers = lib.makeBinPath ([ gnutar lhasa rpm binutils cpio gzip p7zip cabextract unshield ]
++ lib.optional (unzipSupport) unzip
++ lib.optional (unrarSupport) unrar
++ [ bzip2 xz lzip ]);
in pythonPackages.buildPythonApplication rec {
2015-01-06 19:33:53 +00:00
name = "dtrx-${version}";
version = "7.1";
src = fetchurl {
url = "http://brettcsmith.org/2007/dtrx/dtrx-${version}.tar.gz";
sha1 = "05cfe705a04a8b84571b0a5647cd2648720791a4";
};
2016-11-10 14:41:20 +00:00
postInstall = ''
wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}"
'';
2015-01-06 19:33:53 +00:00
meta = with stdenv.lib; {
2015-04-28 09:54:58 +01:00
description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";
2015-01-06 19:33:53 +00:00
homepage = "http://brettcsmith.org/2007/dtrx/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.spwhitt ];
platforms = platforms.all;
};
}