mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
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() {
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user