From b75fcad58fc44d325537fe50921aa261875be533 Mon Sep 17 00:00:00 2001 From: Sense T <2174238+senseab@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:20:29 +0000 Subject: [PATCH] package addition crproxy --- pkgs/by-name/cr/crproxy/package.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/cr/crproxy/package.nix diff --git a/pkgs/by-name/cr/crproxy/package.nix b/pkgs/by-name/cr/crproxy/package.nix new file mode 100644 index 0000000000000..42a5d7ad5b959 --- /dev/null +++ b/pkgs/by-name/cr/crproxy/package.nix @@ -0,0 +1,29 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: +buildGoModule rec { + pname = "crproxy"; + version = "0.12.4"; # stable + + src = fetchFromGitHub { + owner = "DaoCloud"; + repo = "crproxy"; + rev = "v${version}"; + hash = "sha256-jWSp0NzeXQu38fAaZ8eTqVN+uvpn6v5xgoi3N5SCQoc="; + }; + + vendorHash = "sha256-R78GbtTWgizvMz3HE83ZYxAbZBvCTbsuKLvPBCB5sx4="; + + env.CGO_ENABLED = 0; + + doCheck = true; + + meta = { + description = "Generic Docker image proxy"; + homepage = "https://github.com/DaoCloud/crproxy"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ SenseT ]; + }; +}