unpackFile: Always copy directories
If $src refers to a directory, then always copy it. Previously, we checked the extension first, so if the directory had an extension like .tar, unpackPhase would fail.
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
, ... } @ args:
|
||||
|
||||
fetchurl ({
|
||||
# Remove the extension, because otherwise unpackPhase will get
|
||||
# confused. FIXME: fix unpackPhase.
|
||||
name = args.name or lib.removeSuffix ".zip" (lib.removeSuffix ".tar.gz" (baseNameOf url));
|
||||
name = args.name or (baseNameOf url);
|
||||
|
||||
recursiveHash = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user