Files
nixpkgs/pkgs/by-name/xh/xhosts/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

36 lines
767 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage {
pname = "nss-xhosts";
version = "unstable-2023-12-30";
src = fetchFromGitHub {
owner = "dvob";
repo = "nss-xhosts";
rev = "78658cc24abb2546936f2b298a27d4abdf629186";
hash = "sha256-saK9CxN4Ek1QBlPOydzEFei1217gPe5MZrUaUHh80hI=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
postFixup = "mv $out/lib/*.so $out/lib/libnss_xhosts.so.2";
meta = with lib; {
description = "NSS Module which supports wildcards";
homepage = "https://github.com/dvob/nss-xhosts";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
mainProgram = "nss-xhosts";
};
}