diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-17 11:14:02 +0200 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-18 07:25:43 +0200 |
| commit | 9237328fb09b2c18365bb5fcef1c4596d77973a9 (patch) | |
| tree | 55bbfd35140871166a52bbf01bb658c03ca127d6 /nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix | |
| parent | f29ddff912ddcd58a4726736702b24655505ce09 (diff) | |
refactor: make server packages buildable via packages.*
Diffstat (limited to 'nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix')
| -rw-r--r-- | nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix b/nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix new file mode 100644 index 0000000..d4fd13e --- /dev/null +++ b/nixos/profiles/server/pkgs/prometheus-storagebox-exporter.nix @@ -0,0 +1,22 @@ +{ + lib, + buildGoModule, + sources, +}: +buildGoModule { + pname = "storagebox_exporter"; + version = sources.prometheus-storagebox-exporter.version; + src = sources.prometheus-storagebox-exporter; + vendorHash = "sha256-3aBklYmPHELcLG+3sOEDd9qkrJyDrC52LfhOOY/6sOc="; + + meta = with lib; { + description = "Modern Prometheus exporter for Hetzner Storage Box with comprehensive metrics"; + mainProgram = "prometheus-storagebox-exporter"; + homepage = "https://github.com/crstian19/prometheus-storagebox-exporter"; + license = licenses.mit; + }; + + postPatch = '' + substituteInPlace go.mod --replace 'go 1.25.5' 'go 1.25.4' + ''; +} |
