diff options
Diffstat (limited to 'fetch.nix')
| -rw-r--r-- | fetch.nix | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/fetch.nix b/fetch.nix deleted file mode 100644 index 78cbf9a..0000000 --- a/fetch.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ bash -, coreutils -, writeTextFile -, unzip -, ... -}: - -let fetch = rec { - - tar = builtins.fetchTarball; - url = builtins.fetchurl; - - zip = - { url - , sha256 - , name ? "unnamed-zipfile" - }@x: - - builtins.trace x - - derivation rec { - inherit name; - - src = fetch.url x.url; - - buildScript = writeTextFile { - name = "${name}.zip-downloader"; - executable = true; - - text = '' - ${coreutils}/bin/mkdir -p $out - ${unzip}/bin/unzip -d $out $src - ''; - }; - - builder = "${bash}/bin/bash"; - args = [ "-e" buildScript ]; - system = builtins.currentSystem; - }; - -}; in fetch |
