summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/lua-5
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2019-02-17 21:18:49 +0900
committerJörg Thalheim <joerg@thalheim.io>2019-03-07 10:34:01 +0000
commited7818219a70bc897463c1ece9d7abfa723c87f0 (patch)
treef9b82d799b2c96575aa247c0d640d7a0e271f011 /pkgs/development/interpreters/lua-5
parentb93ccb71366c98d14f6c720cdfca6d5c8150118b (diff)
lua: run postConfigure hook for rock and rockspec
it was previously run only for src.rock
Diffstat (limited to 'pkgs/development/interpreters/lua-5')
-rw-r--r--pkgs/development/interpreters/lua-5/build-lua-package.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/lua-5/build-lua-package.nix b/pkgs/development/interpreters/lua-5/build-lua-package.nix
index 0bed5efe4f79..b1175c2fa459 100644
--- a/pkgs/development/interpreters/lua-5/build-lua-package.nix
+++ b/pkgs/development/interpreters/lua-5/build-lua-package.nix
@@ -3,8 +3,6 @@
, lua
, stdenv
, wrapLua
-, unzip
-, writeText
# Whether the derivation provides a lua module or not.
, toLuaModule
}:
@@ -117,14 +115,16 @@ builtins.removeAttrs attrs ["disabled" "checkInputs"] // {
cat > ${luarocks_config} <<EOF
${luarocks_content}
EOF
- export LUAROCKS_CONFIG=$PWD/${luarocks_config};
+ export LUAROCKS_CONFIG="$PWD/${luarocks_config}";
''
+ lib.optionalString (knownRockspec != null) ''
# prevents the following type of error:
# Inconsistency between rockspec filename (42fm1b3d7iv6fcbhgm9674as3jh6y2sh-luv-1.22.0-1.rockspec) and its contents (luv-1.22.0-1.rockspec)
rockspecFilename="$TMP/$(stripHash ''${knownRockspec})"
- cp ''${knownRockspec} $rockspecFilename
+ cp ''${knownRockspec} "$rockspecFilename"
+ ''
+ + ''
runHook postConfigure
'';