mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Merge pull request #20312 from gnidorah/master2
dtrx: add archivers to dependencies
This commit is contained in:
commit
50bb53238b
@ -1,6 +1,17 @@
|
||||
{stdenv, fetchurl, pythonPackages}:
|
||||
{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 }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
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 {
|
||||
name = "dtrx-${version}";
|
||||
version = "7.1";
|
||||
|
||||
@ -9,6 +20,10 @@ pythonPackages.buildPythonApplication rec {
|
||||
sha1 = "05cfe705a04a8b84571b0a5647cd2648720791a4";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/dtrx" --prefix PATH : "${archivers}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Do The Right Extraction: A tool for taking the hassle out of extracting archives";
|
||||
homepage = "http://brettcsmith.org/2007/dtrx/";
|
||||
|
Loading…
Reference in New Issue
Block a user