summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-09-24 23:33:07 +0200
committermakefu <github@syntax-fehler.de>2018-09-24 23:33:07 +0200
commitceb153423553c6a8005f34017d019e50b54a1259 (patch)
tree619007b3706c3807f3f64ddb836e2e7f14914d27 /krebs/5pkgs
parent20c69c0386df4606af544342d7de6638356572a3 (diff)
pkgs.airdcpp-webclient: add which to wrapper
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r--krebs/5pkgs/simple/airdcpp-webclient/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/airdcpp-webclient/default.nix b/krebs/5pkgs/simple/airdcpp-webclient/default.nix
index 361a7da6..2bc6cdca 100644
--- a/krebs/5pkgs/simple/airdcpp-webclient/default.nix
+++ b/krebs/5pkgs/simple/airdcpp-webclient/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl
+{ stdenv, fetchurl, makeWrapper, which
}:
stdenv.mkDerivation rec {
name = "airdcpp-webclient-${version}";
@@ -13,8 +13,9 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/{share,bin}
cp -r * $out/share
- ln -s $out/share/airdcppd $out/bin/
+ makeWrapper $out/share/airdcppd $out/bin/airdcppd --prefix PATH ${which}/bin
'';
+ nativeBuildInputs = [ makeWrapper ];
meta = with stdenv.lib; {
# to start it: airdcpp -p=<pid-file> -c=<config-store-path (must be writeable)> --configure