1 { stdenv, lib, fetchurl, makeWrapper, perl
3 # extractors which are added to unp’s PATH
8 runtime_bins = [ file unzip gzip ] ++ extraBackends;
10 in stdenv.mkDerivation {
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ perl ];
17 url = "mirror://debian/pool/main/u/unp/unp_2.0~pre9.tar.xz";
18 sha256 = "1lp5vi9x1qi3b21nzv0yqqacj6p74qkl5zryzwq30rjkyvahjya1";
19 name = "unp_2.0_pre9.tar.xz";
26 mkdir -p $out/share/man/man1
27 install ./unp $out/bin/unp
28 install ./ucat $out/bin/ucat
29 cp debian/unp.1 $out/share/man/man1
31 wrapProgram $out/bin/unp \
32 --prefix PATH : ${lib.makeBinPath runtime_bins}
33 wrapProgram $out/bin/ucat \
34 --prefix PATH : ${lib.makeBinPath runtime_bins}
38 description = "Command line tool for unpacking archives easily";
39 homepage = "https://packages.qa.debian.org/u/unp.html";
40 license = with licenses; [ gpl2Only ];
41 maintainers = [ maintainers.timor ];
42 platforms = platforms.all;