From 540f5ade74da9e1abe8b7c326c549aed7d2de0b0 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 26 Mar 2022 13:00:51 +0100 Subject: certspotter --- overlays/certspotter/default.nix | 15 +++++++++ overlays/certspotter/deps.nix | 73 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 overlays/certspotter/default.nix create mode 100644 overlays/certspotter/deps.nix diff --git a/overlays/certspotter/default.nix b/overlays/certspotter/default.nix new file mode 100644 index 00000000..3cfd5346 --- /dev/null +++ b/overlays/certspotter/default.nix @@ -0,0 +1,15 @@ +{ prev, ... }: { + certspotter = prev.buildGoPackage rec { + pname = "certspotter"; + version = "0.11"; + + src = (prev.fetchFromGitHub { + owner = "SSLMate"; + repo = "certspotter"; + rev = version; + hash = "sha256-KTbEmaKaqEIqMaLFM28jb8ehjtlXqPGkNJ2sxHrVrI8="; + }); + goPackagePath = "cmd/certspotter"; + goDeps = ./deps.nix; + }; +} diff --git a/overlays/certspotter/deps.nix b/overlays/certspotter/deps.nix new file mode 100644 index 00000000..ae05dd30 --- /dev/null +++ b/overlays/certspotter/deps.nix @@ -0,0 +1,73 @@ +# file generated from go.mod using vgo2nix (https://github.com/nix-community/vgo2nix) +[ + { + goPackagePath = "github.com/mreiferson/go-httpclient"; + fetch = { + type = "git"; + url = "https://github.com/mreiferson/go-httpclient"; + rev = "5e475fde3a4d"; + sha256 = "13s8va5zlbmh5lgxpkdrcxvbqkbxszjvf27p1njv75q4jk8g5vhq"; + moduleDir = ""; + }; + } + { + goPackagePath = "golang.org/x/net"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/net"; + rev = "de3da57026de"; + sha256 = "0q14qjy8s4nr08jk324c8msyawyv2ji8s6bn19fh8bjcnjxhfic0"; + moduleDir = ""; + }; + } + { + goPackagePath = "golang.org/x/sys"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/sys"; + rev = "1d35b9e2eb4e"; + sha256 = "09xmnw6hhpqnakm99xxigg0znbx46f084lpacz67p5rbcdngjxis"; + moduleDir = ""; + }; + } + { + goPackagePath = "golang.org/x/term"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/term"; + rev = "03fcf44c2211"; + sha256 = "0aw5lgwq5w5kvwfa3jl7l83p9c827ksy4a99dqzzsqxvmk2zdi8f"; + moduleDir = ""; + }; + } + { + goPackagePath = "golang.org/x/text"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/text"; + rev = "v0.3.7"; + sha256 = "0xkw0qvfjyifdqd25y7nxdqkdh92inymw3q7841nricc9s01p4jy"; + moduleDir = ""; + }; + } + { + goPackagePath = "golang.org/x/tools"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "90fa682c2a6e"; + sha256 = "03ic2xsy51jw9749wl7gszdbz99iijbd2bckgygl6cm9w5m364ak"; + moduleDir = ""; + }; + } + { + goPackagePath = "software.sslmate.com/src/certspotter"; + fetch = { + type = "git"; + url = "https://software.sslmate.com/src/certspotter.git"; + rev = "54f34077d3be"; + sha256 = "13xcsmxc9b4x6jjg3a2pv67a3ivg4dpk7id264m45a4slacw8di9"; + moduleDir = ""; + }; + } +] -- cgit v1.2.3