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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
753 B
Nix
Raw Normal View History

2020-08-24 06:22:51 +00:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2018-02-11 07:08:16 +00:00
buildGoModule rec {
2019-06-04 23:47:16 +00:00
pname = "lego";
2024-06-12 05:24:22 +00:00
version = "4.17.4";
2018-02-11 07:08:16 +00:00
src = fetchFromGitHub {
2019-06-04 23:47:16 +00:00
owner = "go-acme";
repo = pname;
rev = "v${version}";
2024-06-12 05:24:22 +00:00
sha256 = "sha256-DF9Bx6CzZLdnyqe8PNWU2I9ym2SBDAjdwG9/zxvSjgs=";
2018-02-11 07:08:16 +00:00
};
2024-06-12 05:24:22 +00:00
vendorHash = "sha256-tX/QpAZLuQEYhm1I1twlg3TefaLqfiEz9cXID+r6EHA=";
doCheck = false;
2019-11-27 21:12:08 +00:00
subPackages = [ "cmd/lego" ];
2018-02-11 07:08:16 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
2024-05-30 15:14:56 +00:00
"-s" "-w" "-X main.version=${version}"
2020-01-29 21:45:00 +00:00
];
meta = with lib; {
2018-02-11 07:08:16 +00:00
description = "Let's Encrypt client and ACME library written in Go";
license = licenses.mit;
2019-06-04 23:47:16 +00:00
homepage = "https://go-acme.github.io/lego/";
2020-04-20 00:36:40 +00:00
maintainers = teams.acme.members;
2024-02-11 02:19:15 +00:00
mainProgram = "lego";
2018-02-11 07:08:16 +00:00
};
2020-08-24 06:22:51 +00:00
passthru.tests.lego = nixosTests.acme;
2018-02-11 07:08:16 +00:00
}