diff --git a/pkgs/by-name/ag/agnos/package.nix b/pkgs/by-name/ag/agnos/package.nix new file mode 100644 index 000000000000..9b6bc6258b88 --- /dev/null +++ b/pkgs/by-name/ag/agnos/package.nix @@ -0,0 +1,31 @@ +{ + fetchFromGitHub, + lib, + nixosTests, + rustPlatform, + openssl, + pkg-config, +}: +rustPlatform.buildRustPackage rec { + pname = "agnos"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "krtab"; + repo = "agnos"; + rev = "v${version}"; + hash = "sha256-hSiJvpTQIbhz/0AFBTvgfRDTqOi9YcDOvln15SksMJs="; + }; + + cargoHash = "sha256-wmnfAvtTjioslSdD6z0mMl3Hz46wpPYMk494r9xXj44="; + + buildInputs = [ openssl ]; + nativeBuildInputs = [ pkg-config ]; + + meta = with lib; { + description = "Obtains certificates from Let's Encrypt using DNS-01 without the need for API access to the DNS provider"; + homepage = "https://github.com/krtab/agnos"; + license = licenses.mit; + maintainers = with maintainers; [ justinas ]; + }; +}