2011-04-25 17:03:13 +02:00
|
|
|
{ stdenv, fetchurl, zlib, enableStatic ? false,
|
|
|
|
sftpPath ? "/var/run/current-system/sw/libexec/sftp-server" }:
|
2010-03-10 00:11:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dropbear-0.52";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://matt.ucc.asn.au/dropbear/releases/dropbear-0.52.tar.bz2;
|
|
|
|
sha256 = "1h84dwld8qm19m0a1zslm2ssz65nr93irw7p2h5fjrlh9ix74ywc";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontDisableStatic = enableStatic;
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional enableStatic "LDFLAGS=-static";
|
|
|
|
|
2011-04-25 17:03:13 +02:00
|
|
|
CFLAGS = "-DSFTPSERVER_PATH=${sftpPath}";
|
|
|
|
|
2011-04-25 16:40:10 +02:00
|
|
|
patches = [
|
|
|
|
# Allow sessions to inherit the PATH from the parent dropbear.
|
|
|
|
# Otherwise they only get the usual /bin:/usr/bin kind of PATH
|
|
|
|
./pass-path.patch
|
|
|
|
];
|
|
|
|
|
2010-03-10 00:11:12 +01:00
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://matt.ucc.asn.au/dropbear/dropbear.html;
|
|
|
|
description = "An small footprint implementation of the SSH 2 protocol";
|
|
|
|
license = "mit";
|
|
|
|
};
|
|
|
|
}
|