stdenv: Move unzip support to unzip's setup hook

This commit is contained in:
Eelco Dolstra
2014-08-09 12:44:50 +02:00
parent f97ee61255
commit d7b356f73b
3 changed files with 11 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
addHook unpackCmd _tryUnzip
_tryUnzip() {
if ! [[ "foo.zip" =~ \.zip$ ]]; then return 1; fi
unzip -qq "$curSrc"
}