From 51194934f276d6df9835654175f8363fbeb4bdcf Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 27 Aug 2025 20:45:48 +0200 Subject: refactor: pin prometheus-sql-exporter with npins --- nixos/shared/prometheus-sql-exporter/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'nixos/shared/prometheus-sql-exporter/default.nix') diff --git a/nixos/shared/prometheus-sql-exporter/default.nix b/nixos/shared/prometheus-sql-exporter/default.nix index 81f1660..4a08ff6 100644 --- a/nixos/shared/prometheus-sql-exporter/default.nix +++ b/nixos/shared/prometheus-sql-exporter/default.nix @@ -1,20 +1,14 @@ { lib, buildGoModule, - fetchFromGitHub, }: - -buildGoModule rec { +let + sources = import ; +in +buildGoModule { pname = "sql_exporter"; - version = "0.17.1"; - - src = fetchFromGitHub { - owner = "burningalchemist"; - repo = pname; - rev = version; - sha256 = "sha256-AEPFXPplHtny1P3gMvB1gbMj10bpu9PXc6ywliF+dCc="; - }; - + version = sources.prometheus-sql-exporter.version; + src = sources.prometheus-sql-exporter; vendorHash = "sha256-KFWDqbdbXvgEtz1nlasWrvIckpzasUdzbb+AKfXmYf8="; meta = with lib; { -- cgit v1.2.3