Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchpatch 3, fetchFromGitHub 4, buildGoModule 5}: 6 7buildGoModule rec { 8 pname = "reg"; 9 version = "0.16.1"; 10 11 src = fetchFromGitHub { 12 owner = "genuinetools"; 13 repo = "reg"; 14 rev = "v${version}"; 15 sha256 = "1jlza1czfssssi3y9zi6kr8k9msfa7vp215ibhwbz4h97av5xw5m"; 16 }; 17 18 patches = [ 19 # https://github.com/genuinetools/reg/pull/218 20 (fetchpatch { 21 name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch"; 22 url = "https://github.com/genuinetools/reg/commit/f37b04ad8be47f1e68ef9b2c5906324d7096231e.patch"; 23 hash = "sha256-wmBjPdrpNpxx//I+d+k8DNR11TmyXxb84vXR/MrYHKA="; 24 }) 25 (fetchpatch { 26 name = "update-vendored-dependencies.patch"; 27 url = "https://github.com/genuinetools/reg/commit/8bb04bc3fd41c089716e65ee905c6feac8bda5a0.patch"; 28 hash = "sha256-5nZaayy0xu7sOJHVCp6AotINiF7vXk2Jic8SR8ZrH/g="; 29 }) 30 ]; 31 32 vendorSha256 = null; 33 doCheck = false; 34 35 meta = with lib; { 36 description = "Docker registry v2 command line client and repo listing generator with security checks"; 37 homepage = "https://github.com/genuinetools/reg"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ ereslibre ]; 40 }; 41}