dropbear: cleanup static build

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
Florian Warzecha 2024-04-01 17:13:02 +02:00
parent 2da974bf8e
commit e9eb20c757
No known key found for this signature in database
GPG Key ID: 4BE8C7D97F910C60

View File

@ -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 " ")