nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 1.0 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 testers, 6 bearer, 7}: 8 9buildGoModule rec { 10 pname = "bearer"; 11 version = "1.50.0"; 12 13 src = fetchFromGitHub { 14 owner = "bearer"; 15 repo = "bearer"; 16 tag = "v${version}"; 17 hash = "sha256-6GggGsimQShDs/F/H80aBykQYowH55plDQDRjiWKFsA="; 18 }; 19 20 vendorHash = "sha256-+2iiMb2+/a3GCUMVA9boJJxuFgB3NmxpTePyMEA46jw="; 21 22 subPackages = [ "cmd/bearer" ]; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}" 28 ]; 29 30 passthru.tests = { 31 version = testers.testVersion { 32 package = bearer; 33 command = "bearer version"; 34 }; 35 }; 36 37 meta = { 38 description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks"; 39 homepage = "https://github.com/bearer/bearer"; 40 changelog = "https://github.com/Bearer/bearer/releases/tag/v${version}"; 41 license = with lib.licenses; [ elastic20 ]; 42 maintainers = with lib.maintainers; [ fab ]; 43 }; 44}