pebble: use buildGoModule

This commit is contained in:
Azat Bahawi 2022-06-10 22:39:06 +03:00
parent 5df0c92fb5
commit 39215582e1
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -1,15 +1,13 @@
{ buildGoPackage { lib
, buildGoModule
, fetchFromGitHub , fetchFromGitHub
, lib
, nixosTests , nixosTests
}: }:
buildGoPackage rec { buildGoModule rec {
pname = "pebble"; pname = "pebble";
version = "2.3.1"; version = "2.3.1";
goPackagePath = "github.com/letsencrypt/${pname}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "letsencrypt"; owner = "letsencrypt";
repo = pname; repo = pname;
@ -17,6 +15,8 @@ buildGoPackage rec {
sha256 = "sha256-S9+iRaTSRt4F6yMKK0OJO6Zto9p0dZ3q/mULaipudVo="; sha256 = "sha256-S9+iRaTSRt4F6yMKK0OJO6Zto9p0dZ3q/mULaipudVo=";
}; };
vendorSha256 = null;
passthru.tests = { passthru.tests = {
smoke-test = nixosTests.acme; smoke-test = nixosTests.acme;
}; };