dropbear: cleanup static build

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>

-4
-4
pkgs/tools/networking/dropbear/default.nix
··· 1 1 { lib, stdenv, fetchurl, zlib, libxcrypt 2 - , enableStatic ? stdenv.hostPlatform.isStatic 3 2 , enableSCP ? false 4 3 , sftpPath ? "/run/current-system/sw/libexec/sftp-server" 5 4 }: ··· 22 21 url = "https://matt.ucc.asn.au/dropbear/releases/dropbear-${version}.tar.bz2"; 23 22 sha256 = "sha256-vFoSH/vJS1FxrV6+Ab5CdG1Qqnl8lUmkY5iUoWdJRDs="; 24 23 }; 25 - 26 - dontDisableStatic = enableStatic; 27 - configureFlags = lib.optional enableStatic "LDFLAGS=-static"; 28 24 29 25 CFLAGS = lib.pipe (lib.attrNames dflags) [ 30 26 (builtins.map (name: "-D${name}=\\\"${dflags.${name}}\\\""))