summary refs log tree commit diff
path: root/pkgs/os-specific/linux/keyutils/default.nix
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-05-10 00:33:24 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-05-10 02:29:36 -0500
commite2672e892a1e01a6d0cd1797f0398c5bb9fd6b93 (patch)
tree8e557cc13dc2a642ae0ed9c6dff01ae1d146f767 /pkgs/os-specific/linux/keyutils/default.nix
parent4ec21f6ecdd0088b719956b12e83aff339d89e69 (diff)
downloadnixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar.gz
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar.bz2
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar.lz
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar.xz
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.tar.zst
nixlib-e2672e892a1e01a6d0cd1797f0398c5bb9fd6b93.zip
keyutils: Update from 1.5.8 -> 1.5.9
Diffstat (limited to 'pkgs/os-specific/linux/keyutils/default.nix')
-rw-r--r--pkgs/os-specific/linux/keyutils/default.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/os-specific/linux/keyutils/default.nix b/pkgs/os-specific/linux/keyutils/default.nix
index 8673981ecd50..fc05fc234525 100644
--- a/pkgs/os-specific/linux/keyutils/default.nix
+++ b/pkgs/os-specific/linux/keyutils/default.nix
@@ -1,29 +1,28 @@
 { stdenv, fetchurl, gnumake, file }:
 
 stdenv.mkDerivation rec {
-  name = "keyutils-1.5.8";
+  name = "keyutils-1.5.9";
   
   src = fetchurl {
     url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2";
-    sha256 = "17419fr7mph8wlhxpqb1bdrghz0db15bmjdgxg1anfgbf9ra6zbc";
+    sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd";
   };
 
   buildInputs = [ file ];
 
   patchPhase = ''
-    sed -i -e "s,/usr/bin/make,${gnumake}/bin/make," \
-        -e "s, /etc, $out/etc," \
-        -e "s, /bin, $out/bin," \
-        -e "s, /sbin, $out/sbin," \
-        -e "s, /lib, $out/lib," \
-        -e "s, /lib64, $out/lib64," \
-        -e "s,/usr,$out," \
+    sed -i -e "s, /usr/bin/make, ${gnumake}/bin/make," \
+        -e "s, /usr, ," \
+        -e "s,\$(LNS) \$(LIBDIR)/\$(SONAME),\$(LNS) \$(SONAME)," \
         Makefile
   '';
+
+  installPhase = "make install DESTDIR=$out";
   
-  meta = {
+  meta = with stdenv.lib; {
     homepage = http://people.redhat.com/dhowells/keyutils/;
     description = "Tools used to control the Linux kernel key management system";
-    license = "GPLv2+";
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
   };
 }