lol
1{ lib
2, buildGoModule
3, fetchFromGitHub
4, testers
5, relic
6}:
7
8buildGoModule rec {
9 pname = "relic";
10 version = "7.6.1";
11
12 src = fetchFromGitHub {
13 owner = "sassoftware";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-wOQKSH60AGO6GLaJL1KDK2PzIt8X2V1z1sPhUWVeAG4=";
17 };
18
19 vendorHash = "sha256-EZohpGzMDYKUbjSOIfoUbbsABNDOddrTt52pv+VQLdI=";
20
21 ldflags = [
22 "-s"
23 "-w"
24 "-X=main.version=${version}"
25 "-X=main.commit=${src.rev}"
26 ];
27
28 passthru.tests = {
29 version = testers.testVersion {
30 package = relic;
31 };
32 };
33
34 meta = with lib; {
35 homepage = "https://github.com/sassoftware/relic";
36 description = "A service and a tool for adding digital signatures to operating system packages for Linux and Windows";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ strager ];
39 };
40}