Unverified Commit 4228ac73 authored by Jonathan Davies's avatar Jonathan Davies
Browse files

tkey-ssh-agent: Use finalAttrs

parent 64b2373a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@
  versionCheckHook,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "tkey-ssh-agent";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "tillitis";
    repo = "tkey-ssh-agent";
    rev = "v${version}";
    rev = "v${finalAttrs.version}";
    hash = "sha256-Uf3VJJfZn4UYX1q79JdaOfrore+L/Mic3whzpP32JV0=";
  };

@@ -27,7 +27,7 @@ buildGoModule rec {

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

  passthru = {
@@ -47,10 +47,10 @@ buildGoModule rec {
  meta = with lib; {
    description = "SSH Agent for TKey, the flexible open hardware/software USB security key";
    homepage = "https://tillitis.se/app/tkey-ssh-agent/";
    changelog = "https://github.com/tillitis/tkey-ssh-agent/releases/tag/v${version}";
    changelog = "https://github.com/tillitis/tkey-ssh-agent/releases/tag/v${finalAttrs.version}";
    license = licenses.gpl2;
    maintainers = with maintainers; [ bbigras ];
    mainProgram = "tkey-ssh-agent";
    platforms = platforms.all;
  };
}
})