Merge pull request #235586 from figsoda/relic

relic: fix version
This commit is contained in:
Weijia Wang 2023-06-03 00:22:35 +02:00 committed by GitHub
commit 41b028a447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
};
}