2024-03-15 14:01:32 +01:00
|
|
|
|
# SPDX-FileCopyrightText: 2022-2024 Simon Bruder <simon@sbruder.de>
|
2024-01-06 01:19:35 +01:00
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
2022-11-03 16:40:05 +01:00
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
|
pname = "co2_exporter";
|
2023-07-01 13:15:10 +02:00
|
|
|
|
version = "unstable-2023-07-01";
|
2022-11-03 16:40:05 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "sbruder"; # fork of am3o’s original version
|
|
|
|
|
repo = pname;
|
2023-07-01 13:15:10 +02:00
|
|
|
|
rev = "2e1e7af5af6d7e742d69278cf1cb25b08f770e25";
|
|
|
|
|
sha256 = "sha256-64/a6NHzUvHgal30lt3k0vEQBvfEHRR7HZfUReKfO54=";
|
2022-11-03 16:40:05 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
2023-12-02 18:54:23 +01:00
|
|
|
|
vendorHash = "sha256-CMo6FBzw0/OMKEX12oNqhbF/0dRRFR6W3VRp+EU6Q68=";
|
2022-11-03 16:40:05 +01:00
|
|
|
|
|
2024-03-15 14:01:32 +01:00
|
|
|
|
doCheck = false; # no tests
|
2022-11-03 16:40:05 +01:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainer = with mainatiners; [ sbruder ];
|
|
|
|
|
};
|
|
|
|
|
}
|