Files
nixpkgs/pkgs/by-name/re/relic/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

47 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
testers,
relic,
}:
buildGoModule rec {
pname = "relic";
version = "8.2.0";
src = fetchFromGitHub {
owner = "sassoftware";
repo = "relic";
rev = "v${version}";
sha256 = "sha256-dXvKbuAJCL+H0Gh0ZF1VvtY+7cgjq7gs8zwtenI3JuI=";
};
vendorHash = "sha256-3ERGIZZM8hNbt8kYApcqaL2LJ3V5aloSsmJavX2VSpw=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
passthru.tests = {
version = testers.testVersion {
package = relic;
};
};
# Some of the tests use localhost networking. See discussion:
# https://github.com/NixOS/nixpkgs/pull/374824
__darwinAllowLocalNetworking = true;
meta = with lib; {
homepage = "https://github.com/sassoftware/relic";
description = "Service and a tool for adding digital signatures to operating system packages for Linux and Windows";
mainProgram = "relic";
license = licenses.asl20;
maintainers = with maintainers; [ strager ];
};
}