pari: 2.15.5 -> 2.17.1 (#348442)
[NixPkgs.git] / pkgs / by-name / xh / xhosts / package.nix
blobc3974cbd0344fd9463700aa031816e723603b911
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5 }:
7 rustPlatform.buildRustPackage {
8   pname = "nss-xhosts";
9   version = "unstable-2023-12-30";
11   src = fetchFromGitHub {
12     owner = "dvob";
13     repo = "nss-xhosts";
14     rev = "78658cc24abb2546936f2b298a27d4abdf629186";
15     hash = "sha256-saK9CxN4Ek1QBlPOydzEFei1217gPe5MZrUaUHh80hI=";
16   };
18   cargoLock = {
19     lockFile = ./Cargo.lock;
20   };
22   postPatch = ''
23     ln -s ${./Cargo.lock} Cargo.lock
24   '';
26   postFixup = "mv $out/lib/*.so $out/lib/libnss_xhosts.so.2";
28   meta = with lib; {
29     description = "NSS Module which supports wildcards";
30     homepage = "https://github.com/dvob/nss-xhosts";
31     license = licenses.mit;
32     maintainers = with maintainers; [ matthewcroughan ];
33     mainProgram = "nss-xhosts";
34   };