Revert "st: copy config file in 'prePatch' instead of 'preBuild'"
Also change the custom config generation to the postPatch phase.
This commit is contained in:
parent
81902419dd
commit
50b213a45e
@ -13,9 +13,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
prePatch = optionalString (conf != null) ''
|
configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
|
||||||
cp ${writeText "config.def.h" conf} config.def.h
|
postPatch = optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ncurses ];
|
nativeBuildInputs = [ pkgconfig ncurses ];
|
||||||
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
buildInputs = [ libX11 libXft ] ++ extraLibs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user