Merge pull request #293263 from liketechnik/fix/dropbear-static
dropbear: fix pkgsStatic build
This commit is contained in:
commit
a3eaa2051d
1 changed files with 2 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, glibc, zlib, libxcrypt
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
{ lib, stdenv, fetchurl, zlib, libxcrypt
|
||||
, enableSCP ? false
|
||||
, sftpPath ? "/run/current-system/sw/libexec/sftp-server"
|
||||
}:
|
||||
|
@ -23,9 +22,6 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-vFoSH/vJS1FxrV6+Ab5CdG1Qqnl8lUmkY5iUoWdJRDs=";
|
||||
};
|
||||
|
||||
dontDisableStatic = enableStatic;
|
||||
configureFlags = lib.optional enableStatic "LDFLAGS=-static";
|
||||
|
||||
CFLAGS = lib.pipe (lib.attrNames dflags) [
|
||||
(builtins.map (name: "-D${name}=\\\"${dflags.${name}}\\\""))
|
||||
(lib.concatStringsSep " ")
|
||||
|
@ -49,7 +45,7 @@ stdenv.mkDerivation rec {
|
|||
./pass-path.patch
|
||||
];
|
||||
|
||||
buildInputs = [ zlib libxcrypt ] ++ lib.optionals enableStatic [ glibc.static zlib.static ];
|
||||
buildInputs = [ zlib libxcrypt ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small footprint implementation of the SSH 2 protocol";
|
||||
|
|
Loading…
Reference in a new issue