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:
parent
be1291e11b
commit
4195766cea
@ -6,15 +6,11 @@ _tryRockSpec() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_trySourceRock() {
|
_trySourceRock() {
|
||||||
|
|
||||||
if ! [[ "$curSrc" =~ \.src.rock$ ]]; then return 1; fi
|
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
|
# luarocks expects a clean <name>.rock.spec name to be the package name
|
||||||
# so we have to strip the hash
|
# so we have to strip the hash
|
||||||
renamed="$(stripHash $curSrc)"
|
renamed="$(stripHash $curSrc)"
|
||||||
cp "$curSrc" "$renamed"
|
cp "$curSrc" "$renamed"
|
||||||
luarocks unpack --force "$renamed"
|
luarocks unpack --force "$renamed"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user