mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
unp: init at 2.0-pre7
This commit is contained in:
parent
300e272e02
commit
6d7b419706
2 changed files with 41 additions and 0 deletions
39
pkgs/tools/archivers/unp/default.nix
Normal file
39
pkgs/tools/archivers/unp/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -5408,6 +5408,8 @@ with pkgs;
|
|||
|
||||
unarj = callPackage ../tools/archivers/unarj { };
|
||||
|
||||
unp = callPackage ../tools/archivers/unp { };
|
||||
|
||||
unshield = callPackage ../tools/archivers/unshield { };
|
||||
|
||||
unzip = callPackage ../tools/archivers/unzip { };
|
||||
|
|
Loading…
Reference in a new issue