forked from mirrors/nixpkgs
Allow overriding the sftp server path.
svn path=/nixpkgs/trunk/; revision=26969
This commit is contained in:
parent
43c4e65c66
commit
a5923a2e13
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue