mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
dropbear: cleanup static build
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
parent
2da974bf8e
commit
e9eb20c757
@ -1,5 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, zlib, libxcrypt
|
||||
, enableStatic ? stdenv.hostPlatform.isStatic
|
||||
, 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 " ")
|
||||
|
Loading…
Reference in New Issue
Block a user