nixpkgs/pkgs/os-specific/linux/keyutils/default.nix

29 lines
767 B
Nix
Raw Normal View History

2013-11-28 08:01:12 +00:00
{ stdenv, fetchurl, gnumake, file }:
stdenv.mkDerivation rec {
2014-05-10 05:33:24 +00:00
name = "keyutils-1.5.9";
src = fetchurl {
2013-11-28 08:01:12 +00:00
url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2";
2014-05-10 05:33:24 +00:00
sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd";
};
2013-11-28 08:01:12 +00:00
buildInputs = [ file ];
patchPhase = ''
2014-05-10 05:33:24 +00:00
sed -i -e "s, /usr/bin/make, ${gnumake}/bin/make," \
-e "s, /usr, ," \
-e "s,\$(LNS) \$(LIBDIR)/\$(SONAME),\$(LNS) \$(SONAME)," \
Makefile
'';
2014-05-10 05:33:24 +00:00
installPhase = "make install DESTDIR=$out";
2014-05-10 05:33:24 +00:00
meta = with stdenv.lib; {
homepage = http://people.redhat.com/dhowells/keyutils/;
description = "Tools used to control the Linux kernel key management system";
2014-05-10 05:33:24 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}