From 27fe4cc810d630b3933bbb666776e510050b0f9e Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sun, 21 Nov 2021 08:23:16 +0000 Subject: Remove stdenv/fetch things It was a bit too much effort for now. Specifically, making fetch helpers that don't download the item to hash it are a little more involved. I might come back to this stuff in the future (although it might end up in a separate repo). --- fetch.nix | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 fetch.nix (limited to 'fetch.nix') 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 -- cgit v1.2.1