Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / xh / xhosts / package.nix
blobba6b5a184d3f76c5919e6f1cba4f775c5703cb72
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
6 rustPlatform.buildRustPackage {
7   pname = "nss-xhosts";
8   version = "unstable-2023-12-30";
10   src = fetchFromGitHub {
11     owner = "dvob";
12     repo = "nss-xhosts";
13     rev = "78658cc24abb2546936f2b298a27d4abdf629186";
14     hash = "sha256-saK9CxN4Ek1QBlPOydzEFei1217gPe5MZrUaUHh80hI=";
15   };
17   cargoLock = {
18     lockFile = ./Cargo.lock;
19   };
21   postPatch = ''
22     ln -s ${./Cargo.lock} Cargo.lock
23   '';
25   postFixup = "mv $out/lib/*.so $out/lib/libnss_xhosts.so.2";
27   meta = with lib; {
28     description = "NSS Module which supports wildcards";
29     homepage = "https://github.com/dvob/nss-xhosts";
30     license = licenses.mit;
31     maintainers = with maintainers; [ matthewcroughan ];
32     mainProgram = "nss-xhosts";
33   };