-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (48 loc) · 1.6 KB
/
flake.nix
File metadata and controls
57 lines (48 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
description = "vulnz - Vulnerability data aggregator for EU CRA compliance";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.buildGoModule {
pname = "vulnz";
version = "1.0.0";
src = ./.;
# Update this hash via `nix run nixpkgs#nix-prefetch-go` if go.mod changes
vendorHash = pkgs.lib.fakeHash;
subPackages = [ "cmd/vulnz" ];
# Optional: Linker flags to embed version information
ldflags = [
"-s" "-w"
"-X main.Version=1.0.0"
];
meta = with pkgs.lib; {
description = "Concurrent vulnerability data aggregator with EU Cyber Resilience Act tracking";
homepage = "https://github.com/shift/vulnz";
license = licenses.agpl3Only;
platforms = platforms.linux ++ platforms.darwin;
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
gnumake
golangci-lint
glab # GitLab CLI (gitlab.opencode.de)
gh # GitHub CLI
tea # Forgejo/Gitea CLI (Codeberg)
];
shellHook = ''
echo "vulnz development environment loaded."
export VULNZ_LOG_LEVEL=debug
'';
};
}
);
}