luarocks: remove unzip from setup-hook

The unzip variable is only set if it's an attribute and it's a
propagated input so it is already part of PATH.
This commit is contained in:
Daiderd Jordan 2019-02-11 21:27:44 +01:00
parent be1291e11b
commit 4195766cea
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -6,15 +6,11 @@ _tryRockSpec() {
}
_trySourceRock() {
if ! [[ "$curSrc" =~ \.src.rock$ ]]; then return 1; fi
export PATH=${unzip}/bin:$PATH
# luarocks expects a clean <name>.rock.spec name to be the package name
# so we have to strip the hash
renamed="$(stripHash $curSrc)"
cp "$curSrc" "$renamed"
luarocks unpack --force "$renamed"
}