2014-04-09 02:21:06 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2014-04-01 08:10:28 +02:00
|
|
|
|
2014-04-09 02:21:06 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lockdep-${version}";
|
2014-05-18 22:25:47 +02:00
|
|
|
version = "3.14.4";
|
2014-04-09 02:21:06 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
|
2014-05-18 22:25:47 +02:00
|
|
|
sha256 = "05yp192pbjng92rpvq3fd4mhjc96iylwf6xb7as5lscwg660m1b5";
|
2014-04-09 02:21:06 +02:00
|
|
|
};
|
2014-04-01 08:10:28 +02:00
|
|
|
|
|
|
|
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 = {
|
2014-04-09 02:21:06 +02:00
|
|
|
description = "userspace locking validation tool built on the Linux kernel";
|
2014-04-01 08:10:28 +02:00
|
|
|
homepage = "https://kernel.org/";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|