From e8f336fac272a92ac063b4ecd65f680518971044 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 3 Sep 2018 10:10:46 +0200 Subject: [PATCH] skawarePackages.nsss: init at 0.0.1.0 --- pkgs/development/libraries/nsss/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/libraries/nsss/default.nix 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 + ''; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d5e65e4d4bc..fd0bf1a76da8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11311,6 +11311,8 @@ with pkgs; nss_wrapper = callPackage ../development/libraries/nss_wrapper { }; + nsss = skawarePackages.nsss; + ntbtls = callPackage ../development/libraries/ntbtls { }; ntk = callPackage ../development/libraries/audio/ntk { }; @@ -12017,6 +12019,9 @@ with pkgs; s6-networking = callPackage ../tools/networking/s6-networking { }; s6-portable-utils = callPackage ../tools/misc/s6-portable-utils { }; s6-rc = callPackage ../tools/system/s6-rc { }; + + nsss = callPackage ../development/libraries/nsss { }; + }; skydive = callPackage ../tools/networking/skydive { };