summary refs log tree commit diff
path: root/pkgs/development/libraries/utmps
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-09-20 23:46:31 -0500
committerWill Dietz <w@wdtz.org>2018-09-20 23:46:31 -0500
commite8693206ee703c4df26540bce84844113e443e99 (patch)
tree7630f0452943e7fbba293aa76fc9e6e4ca48cb94 /pkgs/development/libraries/utmps
parent8a41a11d6696040025bbc49e76f1ff4957b4cc2d (diff)
downloadnixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar.gz
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar.bz2
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar.lz
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar.xz
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.tar.zst
nixpkgs-e8693206ee703c4df26540bce84844113e443e99.zip
utmps: init at 0.0.1.3
Haven't tried using it, but packging it is first step! :)
Diffstat (limited to 'pkgs/development/libraries/utmps')
-rw-r--r--pkgs/development/libraries/utmps/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/utmps/default.nix b/pkgs/development/libraries/utmps/default.nix
new file mode 100644
index 00000000000..859d152072f
--- /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
+  '';
+}
+