nixpkgs-suyu/pkgs/tools/admin/lego/default.nix

33 lines
737 B
Nix
Raw Normal View History

2020-08-24 08:22:51 +02:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2018-02-11 08:08:16 +01:00
buildGoModule rec {
2019-06-05 01:47:16 +02:00
pname = "lego";
2020-12-13 17:51:10 +01:00
version = "4.1.3";
2018-02-11 08:08:16 +01:00
src = fetchFromGitHub {
2019-06-05 01:47:16 +02:00
owner = "go-acme";
repo = pname;
rev = "v${version}";
2020-12-13 17:51:10 +01:00
sha256 = "05fy6826n449adlglwi8s31km4yhd8hbd9yml8k204cb81w00zyk";
2018-02-11 08:08:16 +01:00
};
2020-09-05 05:56:13 +02:00
vendorSha256 = "0p2pibid2d761whfk7zgq230lyqi2f0wmfvxqkjzrd1sba40r9bp";
doCheck = false;
2019-11-27 22:12:08 +01:00
subPackages = [ "cmd/lego" ];
2018-02-11 08:08:16 +01:00
2020-01-29 22:45:00 +01:00
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
meta = with lib; {
2018-02-11 08:08:16 +01:00
description = "Let's Encrypt client and ACME library written in Go";
license = licenses.mit;
2019-06-05 01:47:16 +02:00
homepage = "https://go-acme.github.io/lego/";
2020-04-20 02:36:40 +02:00
maintainers = teams.acme.members;
2018-02-11 08:08:16 +01:00
};
2020-08-24 08:22:51 +02:00
passthru.tests.lego = nixosTests.acme;
2018-02-11 08:08:16 +01:00
}