bearer: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-29 22:55:01 +01:00
committed by GitHub
parent c71bd10163
commit 7979d6d6d5
+6 -6
View File
@@ -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 ];
};
}
})