mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
st: enable build on darwin (#98668)
This commit is contained in:
parent
4b64ea7e4f
commit
34133d5425
|
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
|
|||
inherit patches;
|
||||
|
||||
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||
patchPhase = optionalString stdenv.isDarwin ''
|
||||
substituteInPlace config.mk --replace "-lrt" ""
|
||||
'';
|
||||
postPatch = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ncurses ];
|
||||
|
|
Loading…
Reference in a new issue