diff --git a/pkgs/by-name/be/bearer/package.nix b/pkgs/by-name/be/bearer/package.nix index 99a202851aca..7d121627a6ff 100644 --- a/pkgs/by-name/be/bearer/package.nix +++ b/pkgs/by-name/be/bearer/package.nix @@ -6,14 +6,14 @@ bearer, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "bearer"; version = "2.0.0"; src = fetchFromGitHub { owner = "bearer"; repo = "bearer"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-kWs8NiuOroKgQC0Duvef9O7TqQnqgEd28EQZVf4y4oQ="; }; @@ -24,7 +24,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}" + "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${finalAttrs.version}" ]; passthru.tests = { @@ -37,8 +37,8 @@ buildGoModule rec { meta = { description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks"; homepage = "https://github.com/bearer/bearer"; - changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}"; - license = with lib.licenses; [ elastic20 ]; + changelog = "https://github.com/Bearer/bearer/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.elastic20; maintainers = with lib.maintainers; [ fab ]; }; -} +})