diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e3cd7ee16923..c46d49e95893 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15392,7 +15392,7 @@ schinmai-akamai = { email = "schinmai@akamai.com"; github = "schinmai-akamai"; - gitubId = 70169773; + githubId = 70169773; name = "Tarun Chinmai Sekar"; }; schmitthenner = { diff --git a/pkgs/tools/networking/goodhosts/default.nix b/pkgs/tools/networking/goodhosts/default.nix new file mode 100644 index 000000000000..fe24c2c06fd3 --- /dev/null +++ b/pkgs/tools/networking/goodhosts/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +}: + +buildGoModule rec { + pname = "goodhosts"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "goodhosts"; + repo = "cli"; + rev = "v${version}"; + hash = "sha256-VXOMyYM4jS3gYxm3WiKw3uKeC535ppd9iHumPiupGbc="; + }; + + ldflags = [ + "-s -w -X main.version=${version}" + ]; + + postInstall = '' + mv $out/bin/cli $out/bin/goodhosts + ''; + + vendorHash = "sha256-pL1z8cfnzcmX5iMVHQJGXYmzGuf8bp4Txbqoh5wSPWQ="; + + meta = with lib; { + description = "A CLI tool for managing hostfiles"; + license = licenses.mit; + homepage = "https://github.com/goodhosts/cli/tree/main"; + maintainers = with maintainers; [ schinmai-akamai ]; + mainProgram = "goodhosts"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4c5d12429134..b33b5665715f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1816,6 +1816,8 @@ with pkgs; godspeed = callPackage ../tools/networking/godspeed { }; + goodhosts = callPackage ../tools/networking/goodhosts { }; + goose = callPackage ../tools/misc/goose { }; gp-saml-gui = python3Packages.callPackage ../tools/networking/gp-saml-gui { };