From e8f336fac272a92ac063b4ecd65f680518971044 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 3 Sep 2018 10:10:46 +0200 Subject: skawarePackages.nsss: init at 0.0.1.0 --- pkgs/development/libraries/nsss/default.nix | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/nsss/default.nix (limited to 'pkgs/development/libraries/nsss') diff --git a/pkgs/development/libraries/nsss/default.nix b/pkgs/development/libraries/nsss/default.nix new file mode 100644 index 000000000000..bd56acb76e6c --- /dev/null +++ b/pkgs/development/libraries/nsss/default.nix @@ -0,0 +1,33 @@ +{ stdenv, skawarePackages }: + +with skawarePackages; + +buildPackage { + pname = "nsss"; + version = "0.0.1.0"; + sha256 = "0pw7qk4j4q4sl3h01bbqcr44ppxkdvaw08xlhsnnkiv9jypfwx7w"; + + description = "An implementation of a subset of the pwd.h, group.h and shadow.h family of functions."; + + # TODO: nsss support + configureFlags = [ + "--libdir=\${lib}/lib" + "--dynlibdir=\${lib}/lib" + "--bindir=\${bin}/bin" + "--includedir=\${dev}/include" + "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps" + "--with-include=${skalibs.dev}/include" + "--with-lib=${skalibs.lib}/lib" + "--with-dynlib=${skalibs.lib}/lib" + ]; + + postInstall = '' + # remove all nsss executables from build directory + rm $(find -name "nsssd-*" -type f -mindepth 1 -maxdepth 1 -executable) + rm libnsss.* libnsssd.* + + mv doc $doc/share/doc/nsss/html + mv examples $doc/share/doc/nsss/examples + ''; + +} -- cgit 1.4.1