From 9fb57fd28795e408cf6601c9bb319b06018348ef Mon Sep 17 00:00:00 2001 From: Logan Barnett Date: Sun, 25 May 2025 21:32:40 -0700 Subject: [PATCH] dness: init at 0.5.7 --- pkgs/by-name/dn/dness/package.nix | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/dn/dness/package.nix diff --git a/pkgs/by-name/dn/dness/package.nix b/pkgs/by-name/dn/dness/package.nix new file mode 100644 index 000000000000..ef3becefebd6 --- /dev/null +++ b/pkgs/by-name/dn/dness/package.nix @@ -0,0 +1,41 @@ +{ + fetchFromGitHub, + lib, + openssl, + pkg-config, + rustPlatform, + versionCheckHook, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "dness"; + version = "0.5.7"; + + src = fetchFromGitHub { + owner = "nickbabcock"; + repo = "dness"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Vty4ec6aoUh3p2b9vLkNeS5R4pJWzjwYrC5DtVVyhT8="; + }; + + cargoHash = "sha256-WhSeNukPjgM7Cy8LWi/s1YGa5/UxsFU1NGL7vIUlU58="; + + doCheck = false; # Many tests require network access + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Dynamic DNS updating tool supporting a variety of providers"; + homepage = "https://github.com/nickbabcock/dness"; + maintainers = with lib.maintainers; [ logan-barnett ]; + mainProgram = "dness"; + license = lib.licenses.mit; + }; +})