summary refs log tree commit diff
path: root/pkgs/tools/networking/dropbear
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-25 15:03:13 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-04-25 15:03:13 +0000
commita5923a2e13607941ec813a3043612b4a31d30528 (patch)
treeef516e0e20d29daf1b7940b41188977fbe7c7dfa /pkgs/tools/networking/dropbear
parent43c4e65c661ac50a1644e458778fedd5361006ca (diff)
downloadnixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar.gz
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar.bz2
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar.lz
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar.xz
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.tar.zst
nixlib-a5923a2e13607941ec813a3043612b4a31d30528.zip
Allow overriding the sftp server path.
svn path=/nixpkgs/trunk/; revision=26969
Diffstat (limited to 'pkgs/tools/networking/dropbear')
-rw-r--r--pkgs/tools/networking/dropbear/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/networking/dropbear/default.nix b/pkgs/tools/networking/dropbear/default.nix
index 836778673e1a..c786a85441a0 100644
--- a/pkgs/tools/networking/dropbear/default.nix
+++ b/pkgs/tools/networking/dropbear/default.nix
@@ -1,4 +1,5 @@
-{ stdenv, fetchurl, zlib, enableStatic ? false }:
+{ stdenv, fetchurl, zlib, enableStatic ? false,
+sftpPath ? "/var/run/current-system/sw/libexec/sftp-server" }:
 
 stdenv.mkDerivation rec {
   name = "dropbear-0.52";
@@ -12,6 +13,8 @@ stdenv.mkDerivation rec {
 
   configureFlags = stdenv.lib.optional enableStatic "LDFLAGS=-static";
 
+  CFLAGS = "-DSFTPSERVER_PATH=${sftpPath}";
+
   patches = [
     # Allow sessions to inherit the PATH from the parent dropbear.
     # Otherwise they only get the usual /bin:/usr/bin kind of PATH