mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
parent
bb79cc9d5f
commit
b4f6931acd
@ -1,7 +1,7 @@
|
||||
{ stdenv, lib, buildPackages, fetchurl
|
||||
, enableStatic ? false
|
||||
, enableMinimal ? false
|
||||
, useMusl ? stdenv.hostPlatform.libc == "musl", musl
|
||||
, useMusl ? stdenv.hostPlatform.libc == "musl"
|
||||
, extraConfig ? ""
|
||||
}:
|
||||
|
||||
@ -88,10 +88,6 @@ stdenv.mkDerivation rec {
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
postConfigure = lib.optionalString useMusl ''
|
||||
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}cc -isystem ${musl.dev}/include -B${musl}/lib -L${musl}/lib")
|
||||
'';
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
buildInputs = lib.optionals (enableStatic && !useMusl && stdenv.cc.libc ? static) [ stdenv.cc.libc stdenv.cc.libc.static ];
|
||||
|
Loading…
Reference in New Issue
Block a user