thanos: migrate to pkgs/by-name, format with nixfmt-rfc-style

This commit is contained in:
Anthony ROUSSEL
2024-09-17 22:02:45 +02:00
parent 7a386c3cc0
commit 2b2c6eb3fc
2 changed files with 27 additions and 21 deletions
@@ -1,11 +1,12 @@
{ lib
, buildGoModule
, fetchFromGitHub
, go
, nix-update-script
, nixosTests
, testers
, thanos
{
lib,
buildGoModule,
fetchFromGitHub,
go,
nix-update-script,
nixosTests,
testers,
thanos,
}:
buildGoModule rec {
@@ -21,18 +22,22 @@ buildGoModule rec {
vendorHash = "sha256-d+jHGmCfx9Ffm5pajm1RvKnMea99JswL0I8nmILXN50=";
doCheck = true;
subPackages = "cmd/thanos";
ldflags = let t = "github.com/prometheus/common/version"; in [
"-X ${t}.Version=${version}"
"-X ${t}.Revision=unknown"
"-X ${t}.Branch=unknown"
"-X ${t}.BuildUser=nix@nixpkgs"
"-X ${t}.BuildDate=unknown"
"-X ${t}.GoVersion=${lib.getVersion go}"
];
ldflags =
let
t = "github.com/prometheus/common/version";
in
[
"-X ${t}.Version=${version}"
"-X ${t}.Revision=unknown"
"-X ${t}.Branch=unknown"
"-X ${t}.BuildUser=nix@nixpkgs"
"-X ${t}.BuildDate=unknown"
"-X ${t}.GoVersion=${lib.getVersion go}"
];
doCheck = true;
passthru = {
updateScript = nix-update-script { };
@@ -51,6 +56,9 @@ buildGoModule rec {
changelog = "https://github.com/thanos-io/thanos/releases/tag/v${version}";
license = licenses.asl20;
mainProgram = "thanos";
maintainers = with maintainers; [ basvandijk anthonyroussel ];
maintainers = with maintainers; [
basvandijk
anthonyroussel
];
};
}
-2
View File
@@ -25525,8 +25525,6 @@ with pkgs;
tailspin = callPackage ../tools/misc/tailspin { };
thanos = callPackage ../servers/monitoring/thanos { };
trafficserver = callPackage ../servers/http/trafficserver { };
inherit (callPackages ../servers/http/tomcat { })