From e8693206ee703c4df26540bce84844113e443e99 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Thu, 20 Sep 2018 23:46:31 -0500 Subject: [PATCH 1/2] utmps: init at 0.0.1.3 Haven't tried using it, but packging it is first step! :) --- pkgs/development/libraries/utmps/default.nix | 32 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/utmps/default.nix diff --git a/pkgs/development/libraries/utmps/default.nix b/pkgs/development/libraries/utmps/default.nix new file mode 100644 index 000000000000..859d152072fb --- /dev/null +++ b/pkgs/development/libraries/utmps/default.nix @@ -0,0 +1,32 @@ +{ stdenv, skawarePackages }: + +with skawarePackages; + +buildPackage { + pname = "utmps"; + version = "0.0.1.3"; + sha256 = "0dwskdclac4afmh7f7zn6jdiydgaf59a65q43r6b813mghczjvvd"; + + description = "A secure utmpx and wtmp implementation"; + + 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 execline executables from build directory + rm $(find -type f -mindepth 1 -maxdepth 1 -executable) + rm libutmps.* + + mv doc $doc/share/doc/utmps/html + mv examples $doc/share/doc/utmps/examples + ''; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a0b0956d759..7a9a456d33d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12075,6 +12075,7 @@ with pkgs; s6-rc = callPackage ../tools/system/s6-rc { }; nsss = callPackage ../development/libraries/nsss { }; + utmps = callPackage ../development/libraries/utmps { }; }; From 69b2c0dcf1c7895817f613171de7a71a02e31adc Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Fri, 21 Sep 2018 05:42:53 -0500 Subject: [PATCH 2/2] utmps: add top-level attribute, as was the style at the time --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7a9a456d33d0..ad0625a66091 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12365,6 +12365,8 @@ with pkgs; uthash = callPackage ../development/libraries/uthash { }; + utmps = skawarePackages.utmps; + ucommon = ucommon_openssl; ucommon_openssl = callPackage ../development/libraries/ucommon {