duply: add missing dependency to which

This commit is contained in:
Ronny Esterluss 2014-09-24 21:46:12 +02:00 committed by Bjørn Forsman
parent 5409201b64
commit df808a9c37

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, coreutils, python, duplicity, gawk, gnupg1, bash
, gnugrep, txt2man, makeWrapper
, gnugrep, txt2man, makeWrapper, which
}:
stdenv.mkDerivation {
@ -20,7 +20,7 @@ stdenv.mkDerivation {
sed -i 's|/usr/bin/env bash|${bash}/bin/bash|' duply
mv duply "$out/bin"
wrapProgram "$out/bin/duply" --set PATH \
"${coreutils}/bin:${python}/bin:${duplicity}/bin:${gawk}/bin:${gnupg1}/bin:${bash}/bin:${gnugrep}/bin:${txt2man}/bin"
"${coreutils}/bin:${python}/bin:${duplicity}/bin:${gawk}/bin:${gnupg1}/bin:${bash}/bin:${gnugrep}/bin:${txt2man}/bin:${which}/bin"
"$out/bin/duply" txt2man | gzip -c > "$out/share/man/man1/duply.1.gz"
'';