nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 744 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6}: 7 8buildGoModule rec { 9 pname = "goodhosts"; 10 version = "1.1.2"; 11 12 src = fetchFromGitHub { 13 owner = "goodhosts"; 14 repo = "cli"; 15 rev = "v${version}"; 16 hash = "sha256-ZasS7AYGYPV+nzp9JbJC5pD0yQ+ik+QnuL+3qC1uqFk="; 17 }; 18 19 ldflags = [ 20 "-s -w -X main.version=${version}" 21 ]; 22 23 postInstall = '' 24 mv $out/bin/cli $out/bin/goodhosts 25 ''; 26 27 vendorHash = "sha256-t/pdJWz6rLnBbH8iq9Nqy+E+DD2770UCEcowwStPdqM="; 28 29 meta = with lib; { 30 description = "CLI tool for managing hostfiles"; 31 license = licenses.mit; 32 homepage = "https://github.com/goodhosts/cli/tree/main"; 33 maintainers = with maintainers; [ schinmai-akamai ]; 34 mainProgram = "goodhosts"; 35 }; 36}