3
0
Fork 0
forked from mirrors/nixpkgs

Allow overriding the sftp server path.

svn path=/nixpkgs/trunk/; revision=26969
This commit is contained in:
Lluís Batlle i Rossell 2011-04-25 15:03:13 +00:00
parent 43c4e65c66
commit a5923a2e13

View file

@ -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