lego
Some checks failed
Check flake.lock / Check health of `flake.lock` (push) Successful in 14s
Check Nix formatting / Perform Nix format checks (push) Successful in 2m34s
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Failing after 6m27s
Update flakes / createPullRequest (push) Failing after 7m10s
Some checks failed
Check flake.lock / Check health of `flake.lock` (push) Successful in 14s
Check Nix formatting / Perform Nix format checks (push) Successful in 2m34s
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Failing after 6m27s
Update flakes / createPullRequest (push) Failing after 7m10s
This commit is contained in:
parent
6a6eddb517
commit
6588d3fd0a
@ -151,6 +151,10 @@
|
|||||||
qcow = getImages nixosConfigurations "qcow";
|
qcow = getImages nixosConfigurations "qcow";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages.x86_64-linux.lego-latest =
|
||||||
|
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/lego-latest/default.nix
|
||||||
|
{ };
|
||||||
|
|
||||||
checks = import ./checks.nix { inherit inputs forEachSystem formatter; };
|
checks = import ./checks.nix { inherit inputs forEachSystem formatter; };
|
||||||
devShells = import ./shell.nix { inherit inputs forEachSystem checks; };
|
devShells = import ./shell.nix { inherit inputs forEachSystem checks; };
|
||||||
|
|
||||||
|
39
pkgs/lego-latest/default.nix
Normal file
39
pkgs/lego-latest/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildGoModule,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "lego";
|
||||||
|
version = "4.21.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "go-acme";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-3dSvQfkBNh8Bt10nv4xGplv4iY3gWvDu2EDN6UovSdc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-teA6fnKl4ATePOYL/zuemyiVy9jgsxikqmuQJwwA8wE=";
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
subPackages = [ "cmd/lego" ];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-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;
|
||||||
|
mainProgram = "lego";
|
||||||
|
};
|
||||||
|
|
||||||
|
#passthru.tests.lego = nixosTests.acme;
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
outputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -22,6 +23,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services."acme-nayeonie.com.service".path = lib.mkForce (
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
coreutils
|
||||||
|
diffutils
|
||||||
|
openssl
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
outputs.packages.x86_64-linux.lego-latest
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"acme/bunny" = {
|
"acme/bunny" = {
|
||||||
owner = "root";
|
owner = "root";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user