Files
nixpkgs/pkgs/by-name/tr/trickster/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
go,
nixosTests,
}:
buildGoModule rec {
pname = "trickster";
version = "1.1.5";
rev = "4595bd6a1ae1165ef497251ad85c646dadc8a925";
src = fetchFromGitHub {
owner = "trickstercache";
repo = "trickster";
rev = "v${version}";
sha256 = "sha256-BRD8IF3s9RaDorVtXRvbKLVVVXWiEQTQyKBR9jFo1eM=";
};
vendorHash = null;
subPackages = [ "cmd/trickster" ];
ldflags = [
"-extldflags '-static'"
"-s"
"-w"
]
++ (lib.mapAttrsToList (n: v: "-X main.application${n}=${v}") {
BuildTime = "1970-01-01T00:00:00+0000";
GitCommitID = rev;
GoVersion = "go${go.version}}";
GoArch = "${go.GOARCH}";
});
# Tests are broken.
doCheck = false;
passthru.tests = { inherit (nixosTests) trickster; };
meta = with lib; {
description = "Reverse proxy cache and time series dashboard accelerator";
mainProgram = "trickster";
longDescription = ''
Trickster is a fully-featured HTTP Reverse Proxy Cache for HTTP
applications like static file servers and web APIs.
'';
homepage = "https://trickstercache.org/";
license = licenses.asl20;
maintainers = with maintainers; [ _1000101 ];
platforms = platforms.linux;
};
}