diff --git a/pkgs/development/tools/relic/default.nix b/pkgs/development/tools/relic/default.nix index 3131255ab822..8d5d9fb3231e 100644 --- a/pkgs/development/tools/relic/default.nix +++ b/pkgs/development/tools/relic/default.nix @@ -1,4 +1,9 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, relic +}: buildGoModule rec { pname = "relic"; @@ -13,11 +18,23 @@ buildGoModule rec { vendorHash = "sha256-EZohpGzMDYKUbjSOIfoUbbsABNDOddrTt52pv+VQLdI="; + ldflags = [ + "-s" + "-w" + "-X=main.version=${version}" + "-X=main.commit=${src.rev}" + ]; + + passthru.tests = { + version = testers.testVersion { + package = relic; + }; + }; + meta = with lib; { homepage = "https://github.com/sassoftware/relic"; description = "A service and a tool for adding digital signatures to operating system packages for Linux and Windows"; license = licenses.asl20; maintainers = with maintainers; [ strager ]; - platforms = platforms.unix; }; }