at 16.09-beta 28 lines 767 B view raw
1{ stdenv, fetchurl, gnumake, file }: 2 3stdenv.mkDerivation rec { 4 name = "keyutils-1.5.9"; 5 6 src = fetchurl { 7 url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2"; 8 sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd"; 9 }; 10 11 buildInputs = [ file ]; 12 13 patchPhase = '' 14 sed -i -e "s, /usr/bin/make, ${gnumake}/bin/make," \ 15 -e "s, /usr, ," \ 16 -e "s,\$(LNS) \$(LIBDIR)/\$(SONAME),\$(LNS) \$(SONAME)," \ 17 Makefile 18 ''; 19 20 installPhase = "make install DESTDIR=$out"; 21 22 meta = with stdenv.lib; { 23 homepage = http://people.redhat.com/dhowells/keyutils/; 24 description = "Tools used to control the Linux kernel key management system"; 25 license = licenses.gpl2Plus; 26 platforms = platforms.linux; 27 }; 28}