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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "dropbear-0.52";
|
name = "dropbear-0.52";
|
||||||
@ -12,6 +13,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = stdenv.lib.optional enableStatic "LDFLAGS=-static";
|
configureFlags = stdenv.lib.optional enableStatic "LDFLAGS=-static";
|
||||||
|
|
||||||
|
CFLAGS = "-DSFTPSERVER_PATH=${sftpPath}";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Allow sessions to inherit the PATH from the parent dropbear.
|
# Allow sessions to inherit the PATH from the parent dropbear.
|
||||||
# Otherwise they only get the usual /bin:/usr/bin kind of PATH
|
# Otherwise they only get the usual /bin:/usr/bin kind of PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user