From 9d19724632d96fe35eed3e3e90f47e738f14a04a Mon Sep 17 00:00:00 2001 From: kyehn Date: Fri, 16 Jan 2026 18:20:03 +0000 Subject: [PATCH] uutils-hostname: init at 0.0.1-unstable-2026-01-08 --- pkgs/by-name/uu/uutils-hostname/package.nix | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/uu/uutils-hostname/package.nix diff --git a/pkgs/by-name/uu/uutils-hostname/package.nix b/pkgs/by-name/uu/uutils-hostname/package.nix new file mode 100644 index 000000000000..f9de647f54b9 --- /dev/null +++ b/pkgs/by-name/uu/uutils-hostname/package.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "uutils-hostname"; + version = "0.0.1-unstable-2026-01-08"; + + src = fetchFromGitHub { + owner = "uutils"; + repo = "hostname"; + rev = "a5590e823e2cb488ad14f61dee92e04cb4dc2704"; + hash = "sha256-nWRkqONxbSwhphULpM+m14H/DSPmM4XdLJ7q2D4kooo="; + }; + + cargoHash = "sha256-1H4h01IqLVZrXNjnI36lGgsmg8rxHDAn9sbuvUxqPEQ="; + + passthru.updateScript = nix-update-script { + extraArgs = [ "--version=branch" ]; + }; + + meta = { + description = "Rust reimplementation of the hostname project"; + homepage = "https://github.com/uutils/hostname"; + license = lib.licenses.mit; + mainProgram = "hostname"; + maintainers = with lib.maintainers; [ kyehn ]; + platforms = lib.platforms.unix; + }; +})