2022-06-10 19:39:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2019-10-20 20:02:48 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-03 22:34:13 +00:00
|
|
|
, nixosTests
|
2019-10-20 20:02:48 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-10 19:39:06 +00:00
|
|
|
buildGoModule rec {
|
2019-10-20 20:02:48 +00:00
|
|
|
pname = "pebble";
|
2024-06-25 05:50:17 +00:00
|
|
|
version = "2.6.0";
|
2022-02-28 11:35:10 +00:00
|
|
|
|
2019-10-20 20:02:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "letsencrypt";
|
|
|
|
repo = pname;
|
2022-02-28 11:35:10 +00:00
|
|
|
rev = "v${version}";
|
2024-06-25 05:50:17 +00:00
|
|
|
hash = "sha256-YPU/bl7h6rOWg+5ut0Thn2UupeKpJ7u4KXc2svIeZEM=";
|
2019-10-20 20:02:48 +00:00
|
|
|
};
|
|
|
|
|
2023-09-21 17:11:11 +00:00
|
|
|
vendorHash = null;
|
2022-06-10 19:39:06 +00:00
|
|
|
|
2024-06-25 05:50:03 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-04-03 22:34:13 +00:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.acme;
|
|
|
|
};
|
|
|
|
|
2019-10-20 20:02:48 +00:00
|
|
|
meta = {
|
2020-03-24 05:21:39 +00:00
|
|
|
homepage = "https://github.com/letsencrypt/pebble";
|
2024-06-25 05:50:03 +00:00
|
|
|
description = "Small RFC 8555 ACME test server";
|
|
|
|
longDescription = "Miniature version of Boulder, Pebble is a small RFC 8555 ACME test server not suited for a production CA";
|
2019-10-20 20:02:48 +00:00
|
|
|
license = [ lib.licenses.mpl20 ];
|
2024-06-25 05:50:03 +00:00
|
|
|
mainProgram = "pebble";
|
2020-04-20 00:36:42 +00:00
|
|
|
maintainers = lib.teams.acme.members;
|
2019-10-20 20:02:48 +00:00
|
|
|
};
|
|
|
|
}
|