add certmanager
This commit is contained in:
parent
b2a8623e5f
commit
5ace716b24
2 changed files with 30 additions and 0 deletions
29
packages/certmanager.nix
Normal file
29
packages/certmanager.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "cert-manager";
|
||||||
|
version = "v1.7.1";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/cert-manager/cert-manager/releases/download/${version}/cmctl-linux-amd64.tar.gz";
|
||||||
|
sha256 = "1z5n2rcfhrl1vm5vxqa1759m3prlv08mmg96n16p4gwkdxycznx4";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
tar xvpzf $src
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -m 755 -D cmctl $out/bin/cmctl
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://cert-manager.io";
|
||||||
|
description = "cert-manager CLI";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ foosinn ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -25,6 +25,7 @@ in {
|
||||||
|
|
||||||
(import ../packages/skaffold.nix)
|
(import ../packages/skaffold.nix)
|
||||||
(import ../packages/helm2.nix)
|
(import ../packages/helm2.nix)
|
||||||
|
(import ../packages/certmanager.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue