2024-07-08 15:07:24 +05:00
|
|
|
{
|
|
|
|
bonfire,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildGoModule,
|
|
|
|
nixosTests,
|
|
|
|
version ? "c847ac4a4c55d6a5a457f6ef494cf45a47299e01",
|
|
|
|
hash ? "sha256-g9OxhM+iNUrAZgM1we8qPsismPy5a0eN654tSYuM/No=",
|
|
|
|
vendorHash ? "sha256-wG0x86lptEY3x+7kVN7v1XZniliMOxaJ6Y95YS6ivJY=",
|
|
|
|
...
|
2024-01-16 01:39:54 +05:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
2024-07-08 15:07:24 +05:00
|
|
|
pname = "lego";
|
|
|
|
inherit version;
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-acme";
|
|
|
|
repo = "lego";
|
|
|
|
rev = version;
|
|
|
|
hash = hash;
|
|
|
|
};
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
inherit vendorHash;
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
doCheck = false;
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
subPackages = ["cmd/lego"];
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Let's Encrypt client and ACME library written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://go-acme.github.io/lego/";
|
|
|
|
maintainers = with bonfire.lib.maintainers; [L-Nafaryus];
|
|
|
|
};
|
2024-01-16 01:39:54 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
passthru.tests.lego = nixosTests.acme;
|
2024-01-16 01:39:54 +05:00
|
|
|
}
|