diff options
author | Matthew Justin Bauer <mjbauer95@gmail.com> | 2018-03-19 03:55:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 03:55:33 -0500 |
commit | c52e8358077e0b7b98e2d38bb59f044e6e8d51b3 (patch) | |
tree | c6c8d8013907c014ac5fe76387d1ad10125b840c /pkgs/tools/archivers | |
parent | 6a68171dc43042fe4d27264f285a610a2c157fba (diff) | |
parent | 6d7b419706373f443f2496ad373f33e032dafc15 (diff) | |
download | nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar.gz nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar.bz2 nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar.lz nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar.xz nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.tar.zst nixlib-c52e8358077e0b7b98e2d38bb59f044e6e8d51b3.zip |
Merge pull request #36524 from timor/unp
unp: init at 2.0-pre7
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/unp/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/unp/default.nix b/pkgs/tools/archivers/unp/default.nix new file mode 100644 index 000000000000..7583663ebf0a --- /dev/null +++ b/pkgs/tools/archivers/unp/default.nix @@ -0,0 +1,39 @@ +{ stdenv, pkgs, lib, fetchurl, makeWrapper, perl, unrar, unzip, gzip, file, extraBackends ? [] }: + +stdenv.mkDerivation rec { + name = "unp-${version}"; + version = "2.0-pre7"; + + runtime_bins = [ file unrar unzip gzip ] ++ extraBackends; + buildInputs = [ perl makeWrapper ] ++ runtime_bins; + + src = fetchurl { + # url = "http://http.debian.net/debian/pool/main/u/unp/unp_2.0~pre7+nmu1.tar.bz2"; + url = "mirror://debian/pool/main/u/unp/unp_2.0~pre7+nmu1.tar.bz2"; + sha256 = "09w2sy7ivmylxf8blf0ywxicvb4pbl0xhrlbb3i9x9d56ll6ybbw"; + name = "unp_2.0_pre7+nmu1.tar.bz2"; + }; + + configurePhase = "true"; + buildPhase = "true"; + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share/man + cp unp $out/bin/ + cp ucat $out/bin/ + cp debian/unp.1 $out/share/man + + wrapProgram $out/bin/unp \ + --prefix PATH : ${lib.makeBinPath runtime_bins} + wrapProgram $out/bin/ucat \ + --prefix PATH : ${lib.makeBinPath runtime_bins} + ''; + + meta = with stdenv.lib; { + description = "Command line tool for unpacking archives easily"; + homepage = https://packages.qa.debian.org/u/unp.html; + license = with licenses; [ gpl2 ]; + maintainers = [ maintainers.timor ]; + platforms = platforms.all; + }; +} |