about summary refs log tree commit diff
path: root/nix/fetchGoModule
diff options
context:
space:
mode:
authorV <v@anomalous.eu>2021-01-19T09·58+0100
committerV <v@anomalous.eu>2021-01-19T10·30+0000
commit29db630a390a555bd7453280dc3f9c06b1304a62 (patch)
tree22ddf3d01a4e942923c5322dab700e452735d240 /nix/fetchGoModule
parent5868d4bd49a7b80a395f1ecabedeb0b8f4ddffce (diff)
chore: Remove banned user r/2133
Change-Id: Icd61f7c567a327c74a4f381168e94737b2b30702
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2422
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'nix/fetchGoModule')
-rw-r--r--nix/fetchGoModule/OWNERS2
-rw-r--r--nix/fetchGoModule/default.nix32
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"
-  '';
-}