unp: improve file copying & fix manpage
This commit is contained in:
parent
b041cff6af
commit
7bc2aaff0e
|
@ -1,11 +1,12 @@
|
||||||
{ stdenv, lib, fetchurl, makeWrapper, perl, unrar, unzip, gzip, file, extraBackends ? [] }:
|
{ stdenv, lib, fetchurl, makeWrapper, perl, unrar, unzip, gzip, file, extraBackends ? [] }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
runtime_bins = [ file unrar unzip gzip ] ++ extraBackends;
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "unp-${version}";
|
name = "unp-${version}";
|
||||||
version = "2.0-pre7";
|
version = "2.0-pre7";
|
||||||
|
buildInputs = [ perl makeWrapper ];
|
||||||
runtime_bins = [ file unrar unzip gzip ] ++ extraBackends;
|
|
||||||
buildInputs = [ perl makeWrapper ] ++ runtime_bins;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# url = "http://http.debian.net/debian/pool/main/u/unp/unp_2.0~pre7+nmu1.tar.bz2";
|
# url = "http://http.debian.net/debian/pool/main/u/unp/unp_2.0~pre7+nmu1.tar.bz2";
|
||||||
|
@ -18,10 +19,10 @@ stdenv.mkDerivation rec {
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/share/man
|
mkdir -p $out/share/man/man1
|
||||||
cp unp $out/bin/
|
install ./unp $out/bin/unp
|
||||||
cp ucat $out/bin/
|
install ./ucat $out/bin/ucat
|
||||||
cp debian/unp.1 $out/share/man
|
cp debian/unp.1 $out/share/man/man1
|
||||||
|
|
||||||
wrapProgram $out/bin/unp \
|
wrapProgram $out/bin/unp \
|
||||||
--prefix PATH : ${lib.makeBinPath runtime_bins}
|
--prefix PATH : ${lib.makeBinPath runtime_bins}
|
||||||
|
|
Loading…
Reference in New Issue