blob: 418e499bd84a35e32edd430a5064637e159e8e26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildGoModule,
fetchFromGitHub,
nixosTests,
}:
buildGoModule (finalAttrs: {
pname = "pebble";
version = "2.6.0";
src = fetchFromGitHub {
owner = "letsencrypt";
repo = "pebble";
rev = "v${finalAttrs.version}";
hash = "sha256-YPU/bl7h6rOWg+5ut0Thn2UupeKpJ7u4KXc2svIeZEM=";
};
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
passthru.tests = {
smoke-test-http = nixosTests.acme.http01-builtin;
smoke-test-dns = nixosTests.acme.dns01;
};
meta = {
homepage = "https://github.com/letsencrypt/pebble";
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";
license = lib.licenses.mpl20;
mainProgram = "pebble";
teams = [ lib.teams.acme ];
};
})
|