nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "uutils-hostname";
10 version = "0-unstable-2026-01-28";
11
12 src = fetchFromGitHub {
13 owner = "uutils";
14 repo = "hostname";
15 rev = "99bba3d33b03da1ff7d961d542ad5804d007b76c";
16 hash = "sha256-f5LTvSsBsFbK9+MMiJQRvY2ze1t4qE2mEUsV0+2oO9A=";
17 };
18
19 cargoHash = "sha256-nbpyflP4J6V6aEeCp5I+FP2NNmXDS4JhbGWUBbOyJEc=";
20
21 passthru.updateScript = nix-update-script {
22 extraArgs = [ "--version=branch" ];
23 };
24
25 meta = {
26 description = "Rust reimplementation of the hostname project";
27 homepage = "https://github.com/uutils/hostname";
28 license = lib.licenses.mit;
29 mainProgram = "hostname";
30 maintainers = with lib.maintainers; [ kyehn ];
31 platforms = lib.platforms.unix;
32 };
33})