nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 884 B view raw
1{ skawarePackages, skalibs }: 2 3skawarePackages.buildPackage { 4 pname = "nsss"; 5 version = "0.2.1.0"; 6 sha256 = "sha256-8iGjHBzuiB6ZKobf4pYzIlPHqfxl9g2IgpzI6JSEIPQ="; 7 8 description = "Implementation of a subset of the pwd.h, group.h and shadow.h family of functions"; 9 10 # TODO: nsss support 11 configureFlags = [ 12 "--libdir=\${lib}/lib" 13 "--dynlibdir=\${lib}/lib" 14 "--bindir=\${bin}/bin" 15 "--includedir=\${dev}/include" 16 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps" 17 "--with-include=${skalibs.dev}/include" 18 "--with-lib=${skalibs.lib}/lib" 19 "--with-dynlib=${skalibs.lib}/lib" 20 ]; 21 22 postInstall = '' 23 # remove all nsss executables from build directory 24 rm $(find -name "nsssd-*" -type f -mindepth 1 -maxdepth 1 -executable) 25 rm libnsss.* libnsssd.* 26 27 mv doc $doc/share/doc/nsss/html 28 mv examples $doc/share/doc/nsss/examples 29 ''; 30 31}