git.iko.soy/typeable/nixpkgs
on master help sign in
fix lua53Packages.lua
commit4e09baaaa278f9697df50546d1a71d1fae294f4e authorWill Dietz <w@wdtz.org> dateSat 27 Apr 2019, 13:28 (8 years ago) parent753e1e0
2 files changed+7−3
pkgs/development/interpreters/lua-5/default.nix+2−3 pkgs/development/interpreters/lua-5/interpreter.nix+5
pkgs/development/interpreters/lua-5/default.nix+2−3
@@ -15,11 +15,10 @@ let
1515
1616in rec {
1717
18− lua5_3 = (callPackage ./interpreter.nix {
18+ lua5_3 = callPackage ./interpreter.nix {
1919 sourceVersion = { major = "5"; minor = "3"; patch = "5"; };
2020 hash = "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac";
2121 patches = lib.optionals stdenv.isDarwin [ ./5.2.darwin.patch ] ;
22− }).overrideAttrs( oa: {
2322 postConfigure = lib.optionalString (!stdenv.isDarwin) ''
2423 cat ${./lua-5.3-dso.make} >> src/Makefile
2524 sed -e 's/ALL_T *= */& $(LUA_SO)/' -i src/Makefile
@@ -28,7 +27,7 @@ in rec {
2827 postBuild = stdenv.lib.optionalString (!stdenv.isDarwin) ''
2928 ( cd src; make $makeFlags "''${makeFlagsArray[@]}" liblua.so )
3029 '';
31− });
30+ };
3231
3332 lua5_3_compat = lua5_3.override({
3433 compat = true;
pkgs/development/interpreters/lua-5/interpreter.nix+5
@@ -5,6 +5,8 @@
55, sourceVersion
66, hash
77, patches ? []
8+, postConfigure ? null
9+, postBuild ? null
810}:
911let
1012luaPackages = callPackage ../../lua-modules {lua=self; overrides=packageOverrides;};
@@ -52,6 +54,9 @@ self = stdenv.mkDerivation rec {
5254
5355 runHook postConfigure
5456 '';
57+ inherit postConfigure;
58+
59+ inherit postBuild;
5560
5661 postInstall = ''
5762 mkdir -p "$out/share/doc/lua" "$out/lib/pkgconfig"