Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / skaware-packages / nsss / default.nix
blob3f81c0e66b3fcf8c95733173832150ee264389fd
1 { skawarePackages }:
3 with skawarePackages;
5 buildPackage {
6   pname = "nsss";
7   version = "0.2.0.4";
8   sha256 = "ObUE+FvY9rUj0zTlz6YsAqOV2zWZG3XyBt8Ku9Z2Gq0=";
10   description = "An implementation of a subset of the pwd.h, group.h and shadow.h family of functions.";
12   # TODO: nsss support
13   configureFlags = [
14     "--libdir=\${lib}/lib"
15     "--dynlibdir=\${lib}/lib"
16     "--bindir=\${bin}/bin"
17     "--includedir=\${dev}/include"
18     "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
19     "--with-include=${skalibs.dev}/include"
20     "--with-lib=${skalibs.lib}/lib"
21     "--with-dynlib=${skalibs.lib}/lib"
22   ];
24   postInstall = ''
25     # remove all nsss executables from build directory
26     rm $(find -name "nsssd-*" -type f -mindepth 1 -maxdepth 1 -executable)
27     rm libnsss.* libnsssd.*
29     mv doc $doc/share/doc/nsss/html
30     mv examples $doc/share/doc/nsss/examples
31   '';