diff options
Diffstat (limited to 'nix')
-rw-r--r-- | nix/fetchGoModule/OWNERS | 2 | ||||
-rw-r--r-- | nix/fetchGoModule/default.nix | 32 |
2 files changed, 0 insertions, 34 deletions
diff --git a/nix/fetchGoModule/OWNERS b/nix/fetchGoModule/OWNERS deleted file mode 100644 index 47b6a04183a2..000000000000 --- a/nix/fetchGoModule/OWNERS +++ /dev/null @@ -1,2 +0,0 @@ -owners: - - edef diff --git a/nix/fetchGoModule/default.nix b/nix/fetchGoModule/default.nix deleted file mode 100644 index 84794bbc50c7..000000000000 --- a/nix/fetchGoModule/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ lib, pkgs, ... }: - -let - - inherit (lib) - lowerChars - replaceStrings - upperChars - ; - - caseFold = replaceStrings upperChars (map (c: "!" + c) lowerChars); - -in - -{ path, version, sha256 }: - -pkgs.fetchurl { - name = "source"; - url = "https://proxy.golang.org/${caseFold path}/@v/v${version}.zip"; - inherit sha256; - - recursiveHash = true; - downloadToTemp = true; - - postFetch = '' - unpackDir="$TMPDIR/unpack" - mkdir "$unpackDir" - - ${pkgs.unzip}/bin/unzip "$downloadedFile" -d "$unpackDir" - mv "$unpackDir/${path}@v${version}" "$out" - ''; -} |