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

28 lines
659 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "lego";
version = "3.7.0";
src = fetchFromGitHub {
owner = "go-acme";
repo = pname;
rev = "v${version}";
hash = "sha256-hjH1TBw6GHYNI9JSBOzdyEtJmp8NhlwNYydGZwsjAg0=";
};
vendorSha256 = "14453iiya6algkympyvwm03qgjcwk79z8bbrij7qhnp52qfrbmrp";
subPackages = [ "cmd/lego" ];
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
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 = teams.acme.members;
};
}