mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
71 lines
1.7 KiB
Nix
71 lines
1.7 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, trdl-client
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "trdl-client";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "werf";
|
|
repo = "trdl";
|
|
rev = "v${version}";
|
|
hash = "sha256-umeoiEq+Cp/cKpiNxCnMDghubm3LPFPJA18ChuYmIVo=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/client";
|
|
|
|
vendorHash = "sha256-f7FPeR+us3WvwqzcSQLbkKv905CCIAAm+HNV2FFF8OY=";
|
|
|
|
subPackages = [ "cmd/trdl" ];
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/werf/trdl/client/pkg/trdl.Version=${src.rev}"
|
|
];
|
|
|
|
tags = [
|
|
"dfrunmount"
|
|
"dfssh"
|
|
];
|
|
|
|
# There are no tests for cmd/trdl.
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = trdl-client;
|
|
command = "trdl version";
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = ''
|
|
The universal solution for delivering your software updates securely from
|
|
a trusted The Update Framework (TUF) repository
|
|
'';
|
|
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/releases/tag/${src.rev}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ azahi ];
|
|
mainProgram = "trdl";
|
|
};
|
|
}
|