luaPackages: use consistent multiline strings for luafilsystem and
luazlib
This commit is contained in:
parent
b584c46623
commit
0946e30470
|
@ -169,7 +169,10 @@ let
|
||||||
url = "https://github.com/keplerproject/luafilesystem/archive/v1_6_2.tar.gz";
|
url = "https://github.com/keplerproject/luafilesystem/archive/v1_6_2.tar.gz";
|
||||||
sha256 = "134azkxw84xp9g5qmzjsmcva629jm7plwcmjxkdzdg05vyd7kig1";
|
sha256 = "134azkxw84xp9g5qmzjsmcva629jm7plwcmjxkdzdg05vyd7kig1";
|
||||||
};
|
};
|
||||||
preConfigure = "substituteInPlace config --replace 'CC= gcc' '';"
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace config --replace "CC= gcc" "";
|
||||||
|
''
|
||||||
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
+ stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace config \
|
substituteInPlace config \
|
||||||
--replace 'LIB_OPTION= -shared' '###' \
|
--replace 'LIB_OPTION= -shared' '###' \
|
||||||
|
@ -357,7 +360,9 @@ let
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
preConfigure = "substituteInPlace Makefile --replace gcc cc --replace '-llua' ''";
|
preConfigure = ''
|
||||||
|
substituteInPlace Makefile --replace gcc cc --replace "-llua" ""
|
||||||
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
makeFlagsArray=(
|
makeFlagsArray=(
|
||||||
|
|
Loading…
Reference in New Issue