Files
nixpkgs/pkgs/by-name/tr/trdl-client/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

61 lines
1.7 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "trdl-client";
version = "0.12.0";
src = fetchFromGitHub {
owner = "werf";
repo = "trdl";
tag = "v${finalAttrs.version}";
hash = "sha256-CVJdnGrQRaenQ8/1EzUr6BNc0DtfAL1fLVfqJzy5A3Q=";
};
sourceRoot = "${finalAttrs.src.name}/client";
vendorHash = "sha256-veSgWyk1ytHRNHuuZJBV+1rqGDsdEb01CImm+EexFCk=";
subPackages = [ "cmd/trdl" ];
ldflags = [
"-s"
"-w"
"-X github.com/werf/trdl/client/pkg/trdl.Version=${finalAttrs.src.rev}"
];
tags = [
"dfrunmount"
"dfssh"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/trdl";
versionCheckProgramArg = "version";
meta = {
description = "Universal solution for delivering your software updates";
longDescription = ''
trdl is an Open Source solution providing a secure channel for delivering
updates from the Git repository to the end user.
The project team releases new versions of the software and switches them
in the release channels. Git acts as the single source of truth while
Vault is used as a tool to verify operations as well as populate and
maintain the TUF repository.
The user selects a release channel, continuously receives the latest
software version from the TUF repository, and uses it.
'';
homepage = "https://trdl.dev";
changelog = "https://github.com/werf/trdl/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.azahi ];
mainProgram = "trdl";
};
})