Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 git, 6}: 7 8buildGoModule rec { 9 pname = "conform"; 10 version = "0.1.0-alpha.29"; 11 12 src = fetchFromGitHub { 13 owner = "siderolabs"; 14 repo = "conform"; 15 rev = "v${version}"; 16 hash = "sha256-5knN+lTedUdgWG8rb3zuJAxx9N0lt7LjJvmSJhdTSgw="; 17 }; 18 19 vendorHash = "sha256-hDdNYXy5NIrlqT6yyOglFg2v7HOM9nE+oh7mx2kLdnQ="; 20 21 ldflags = [ 22 "-s" 23 "-w" 24 "-X github.com/siderolabs/conform/internal/version.Tag=v${version}" 25 ]; 26 27 nativeCheckInputs = [ git ]; 28 29 meta = with lib; { 30 description = "Policy enforcement for your pipelines"; 31 homepage = "https://github.com/siderolabs/conform"; 32 license = licenses.mpl20; 33 maintainers = with maintainers; [ 34 jmgilman 35 jk 36 ]; 37 mainProgram = "conform"; 38 }; 39}