unp: improve file copying & fix manpage

This commit is contained in:
Profpatsch 2019-06-21 20:29:16 +02:00
parent b041cff6af
commit 7bc2aaff0e

View File

@ -1,11 +1,12 @@
{ 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}";
version = "2.0-pre7";
runtime_bins = [ file unrar unzip gzip ] ++ extraBackends;
buildInputs = [ perl makeWrapper ] ++ runtime_bins;
buildInputs = [ perl makeWrapper ];
src = fetchurl {
# 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";
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
mkdir -p $out/share/man/man1
install ./unp $out/bin/unp
install ./ucat $out/bin/ucat
cp debian/unp.1 $out/share/man/man1
wrapProgram $out/bin/unp \
--prefix PATH : ${lib.makeBinPath runtime_bins}