Commit b84bfe69 authored by Paul Meyer's avatar Paul Meyer
Browse files

bluetuith: use finalAttrs

parent 7f20d5e2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -5,14 +5,14 @@
  nix-update-script,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "bluetuith";
  version = "0.2.3";

  src = fetchFromGitHub {
    owner = "darkhz";
    repo = pname;
    rev = "v${version}";
    repo = "bluetuith";
    tag = "v${finalAttrs.version}";
    hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk=";
  };

@@ -23,7 +23,7 @@ buildGoModule rec {
  ldflags = [
    "-s"
    "-w"
    "-X github.com/darkhz/bluetuith/cmd.Version=${version}@nixpkgs"
    "-X github.com/darkhz/bluetuith/cmd.Version=${finalAttrs.version}@nixpkgs"
  ];

  passthru.updateScript = nix-update-script { };
@@ -47,4 +47,4 @@ buildGoModule rec {
      katexochen
    ];
  };
}
})