mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
premake5: fix static build
This commit is contained in:
parent
1015d9a9f8
commit
05c2df5f93
@ -14,12 +14,17 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ libuuid ] ++ lib.optionals stdenv.isDarwin [ Foundation readline ];
|
||||
|
||||
patches = [ ./no-curl-ca.patch ];
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
substituteInPlace contrib/curl/premake5.lua \
|
||||
--replace "ca = nil" "ca = '${cacert}/etc/ssl/certs/ca-bundle.crt'"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace premake5.lua \
|
||||
--replace -mmacosx-version-min=10.4 -mmacosx-version-min=10.5
|
||||
'' + lib.optionalString stdenv.hostPlatform.isStatic ''
|
||||
substituteInPlace \
|
||||
binmodules/example/premake5.lua \
|
||||
binmodules/luasocket/premake5.lua \
|
||||
--replace SharedLib StaticLib
|
||||
'';
|
||||
|
||||
buildPhase =
|
||||
|
Loading…
Reference in New Issue
Block a user