Unverified Commit e8d3eb84 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

fosrl-newt: 1.8.1 -> 1.9.0 (#483437)

parents ac8d05ea c104e79d
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -6,25 +6,25 @@
  nix-update-script,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "newt";
  version = "1.8.1";
  version = "1.9.0";

  src = fetchFromGitHub {
    owner = "fosrl";
    repo = "newt";
    tag = version;
    hash = "sha256-ndgigIk/3/cPZaJHfxWh6XvtAJe3S57sEwNTMBH0lSE=";
    tag = finalAttrs.version;
    hash = "sha256-Ya+OVSChGmiZ8JTAfl/im8fOhLCC+r6JKSlH+CnSwP8=";
  };

  vendorHash = "sha256-5Xr6mwPtsqEliKeKv2rhhp6JC7u3coP4nnhIxGMqccU=";
  vendorHash = "sha256-Sib6AUCpMgxlMpTc2Esvs+UU0yduVOxWUgT44FHAI+k=";

  nativeInstallCheckInputs = [ versionCheckHook ];

  ldflags = [
    "-s"
    "-w"
    "-X=main.newtVersion=${version}"
    "-X=main.newtVersion=${finalAttrs.version}"
  ];

  doInstallCheck = true;
@@ -36,7 +36,7 @@ buildGoModule rec {
  meta = {
    description = "Tunneling client for Pangolin";
    homepage = "https://github.com/fosrl/newt";
    changelog = "https://github.com/fosrl/newt/releases/tag/${src.tag}";
    changelog = "https://github.com/fosrl/newt/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [
      fab
@@ -45,4 +45,4 @@ buildGoModule rec {
    ];
    mainProgram = "newt";
  };
}
})