st: enable build on darwin (#99263)
This commit is contained in:
parent
b03c6ef37d
commit
fa0df4d5ab
@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
|
|||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||||
postPatch = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
|
||||||
|
postPatch = optionalString (conf!=null) "cp ${configFile} config.def.h"
|
||||||
|
+ optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace config.mk --replace "-lrt" ""
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ncurses ];
|
nativeBuildInputs = [ pkgconfig ncurses ];
|
||||||
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
||||||
@ -28,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://st.suckless.org/";
|
homepage = "https://st.suckless.org/";
|
||||||
description = "Simple Terminal for X from Suckless.org Community";
|
description = "Simple Terminal for X from Suckless.org Community";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [andsild];
|
maintainers = with maintainers; [ andsild ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user