parent
bb37fc90c7
commit
7d97051f72
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, writeText, libX11, ncurses, libXext, libXft
|
{ stdenv, fetchurl, pkgconfig, writeText, libX11, ncurses, libXext, libXft
|
||||||
, fontconfig, conf ? null, patches ? []}:
|
, fontconfig, conf ? null, patches ? [], extraLibs ? []}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
|
|||||||
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||||
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
|
|
||||||
buildInputs = [ pkgconfig libX11 ncurses libXext libXft fontconfig ];
|
buildInputs = [ pkgconfig libX11 ncurses libXext libXft fontconfig ] ++ extraLibs;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
TERMINFO=$out/share/terminfo make install PREFIX=$out
|
TERMINFO=$out/share/terminfo make install PREFIX=$out
|
||||||
|
@ -15718,6 +15718,7 @@ with pkgs;
|
|||||||
st = callPackage ../applications/misc/st {
|
st = callPackage ../applications/misc/st {
|
||||||
conf = config.st.conf or null;
|
conf = config.st.conf or null;
|
||||||
patches = config.st.patches or null;
|
patches = config.st.patches or null;
|
||||||
|
extraLibs = config.st.extraLibs or [];
|
||||||
};
|
};
|
||||||
|
|
||||||
st-wayland = callPackage ../applications/misc/st/wayland.nix {
|
st-wayland = callPackage ../applications/misc/st/wayland.nix {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user