summary refs log tree commit diff
path: root/pkgs/os-specific/linux/keyutils
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-01-31 12:59:34 +0300
committerNikolay Amiantov <ab@fmap.me>2017-02-01 02:45:28 +0300
commit6991e7930ec20f5d34a091b9166e5ff32d7b3816 (patch)
treee52b7c33058a224205da472aac3bf1f10c59e535 /pkgs/os-specific/linux/keyutils
parent876a6d7f0384e3a4637beeb9f1458b2798cf2e3a (diff)
downloadnixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar.gz
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar.bz2
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar.lz
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar.xz
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.tar.zst
nixpkgs-6991e7930ec20f5d34a091b9166e5ff32d7b3816.zip
keyutils: split outputs
Diffstat (limited to 'pkgs/os-specific/linux/keyutils')
-rw-r--r--pkgs/os-specific/linux/keyutils/default.nix23
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/keyutils/default.nix b/pkgs/os-specific/linux/keyutils/default.nix
index d1eb38df6da..2aba3ef9112 100644
--- a/pkgs/os-specific/linux/keyutils/default.nix
+++ b/pkgs/os-specific/linux/keyutils/default.nix
@@ -1,23 +1,26 @@
 { stdenv, fetchurl, gnumake, file }:
 
 stdenv.mkDerivation rec {
-  name = "keyutils-1.5.9";
+  name = "keyutils-${version}";
+  version = "1.5.9";
 
   src = fetchurl {
     url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2";
     sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd";
   };
 
-  buildInputs = [ file ];
+  outputs = [ "out" "lib" "dev" ];
 
-  patchPhase = ''
-    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";
+  installFlags = [
+    "ETCDIR=$(out)/etc"
+    "BINDIR=$(out)/bin"
+    "SBINDIR=$(out)/sbin"
+    "SHAREDIR=$(out)/share/keyutils"
+    "MANDIR=$(out)/share/man"
+    "INCLUDEDIR=$(dev)/include"
+    "LIBDIR=$(lib)/lib"
+    "USRLIBDIR=$(lib)/lib"
+  ];
 
   meta = with stdenv.lib; {
     homepage = http://people.redhat.com/dhowells/keyutils/;