lockdep: refactor into non-kernel package

Lockdep doesn't *really* require the kernel package - just the kernel
sources. It's really a user-space tool just compiled from some portable
code within the kernel, nothing more.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp
2014-04-08 19:21:06 -05:00
parent 452a1f9318
commit 3ff158289a
2 changed files with 12 additions and 8 deletions

View File

@@ -1,25 +0,0 @@
{ stdenv, kernel }:
assert stdenv.lib.versionAtLeast kernel.version "3.14";
stdenv.mkDerivation {
name = "lockdep-linux-${kernel.version}";
inherit (kernel) src patches;
preConfigure = "cd tools/lib/lockdep";
installPhase = ''
mkdir -p $out/bin $out/lib $out/include
cp -R include/liblockdep $out/include
make install DESTDIR=$out prefix=""
substituteInPlace $out/bin/lockdep --replace "./liblockdep.so" "$out/lib/liblockdep.so"
'';
meta = {
description = "User-space locking validation via the kernel";
homepage = "https://kernel.org/";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}