diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-01-31 12:59:34 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-02-01 02:45:28 +0300 |
commit | 6991e7930ec20f5d34a091b9166e5ff32d7b3816 (patch) | |
tree | e52b7c33058a224205da472aac3bf1f10c59e535 /pkgs/os-specific/linux/keyutils | |
parent | 876a6d7f0384e3a4637beeb9f1458b2798cf2e3a (diff) | |
download | nixpkgs-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.nix | 23 |
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/; |