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

bearer: migrate to finalAttrs

parent c71bd101
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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 ];
  };
}
})