1{ skawarePackages }:
2
3with skawarePackages;
4
5buildPackage {
6 pname = "nsss";
7 version = "0.2.0.0";
8 sha256 = "0zg0lwkvx9ch4a6h9ryc73nqfz733v2pv4gbf65qzpz7ccniwagi";
9
10 description = "An implementation of a subset of the pwd.h, group.h and shadow.h family of functions.";
11
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 ];
23
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.*
28
29 mv doc $doc/share/doc/nsss/html
30 mv examples $doc/share/doc/nsss/examples
31 '';
32
33}