Author: viric
Date: Mon Apr 25 15:03:13 2011
New Revision: 26969
URL: https://svn.nixos.org/websvn/nix/?rev=26969&sc=1
Log:
Allow overriding the sftp server path.
Modified:
nixpkgs/trunk/pkgs/tools/networking/dropbear/default.nix
Modified: nixpkgs/trunk/pkgs/tools/networking/dropbear/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/tools/networking/dropbear/default.nix Mon Apr 25
14:57:46 2011 (r26968)
+++ nixpkgs/trunk/pkgs/tools/networking/dropbear/default.nix Mon Apr 25
15:03:13 2011 (r26969)
@@ -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 @@
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
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits