Unverified Commit 2316d059 authored by Janik's avatar Janik Committed by GitHub
Browse files

Merge pull request #256548 from schinmai-akamai/master

parents 4a8147ee d75c2dbb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -15536,6 +15536,12 @@
    githubId = 3958212;
    name = "Tom Sorlie";
  };
  schinmai-akamai = {
    email = "schinmai@akamai.com";
    github = "schinmai-akamai";
    githubId = 70169773;
    name = "Tarun Chinmai Sekar";
  };
  schmitthenner = {
    email = "development@schmitthenner.eu";
    github = "fkz";
+35 −0
Original line number Diff line number Diff line
{ 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";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1828,6 +1828,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 { };