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:
parent
452a1f9318
commit
3ff158289a
|
@ -1,9 +1,13 @@
|
||||||
{ stdenv, kernel }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
assert stdenv.lib.versionAtLeast kernel.version "3.14";
|
stdenv.mkDerivation rec {
|
||||||
stdenv.mkDerivation {
|
name = "lockdep-${version}";
|
||||||
name = "lockdep-linux-${kernel.version}";
|
version = "3.14";
|
||||||
inherit (kernel) src patches;
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.xz";
|
||||||
|
sha256 = "61558aa490855f42b6340d1a1596be47454909629327c49a5e4e10268065dffa";
|
||||||
|
};
|
||||||
|
|
||||||
preConfigure = "cd tools/lib/lockdep";
|
preConfigure = "cd tools/lib/lockdep";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -16,7 +20,7 @@ stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "User-space locking validation via the kernel";
|
description = "userspace locking validation tool built on the Linux kernel";
|
||||||
homepage = "https://kernel.org/";
|
homepage = "https://kernel.org/";
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
|
@ -7065,8 +7065,6 @@ let
|
||||||
|
|
||||||
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
perf = callPackage ../os-specific/linux/kernel/perf.nix { };
|
||||||
|
|
||||||
lockdep = callPackage ../os-specific/linux/kernel/lockdep.nix { };
|
|
||||||
|
|
||||||
psmouse_alps = callPackage ../os-specific/linux/psmouse-alps { };
|
psmouse_alps = callPackage ../os-specific/linux/psmouse-alps { };
|
||||||
|
|
||||||
spl = callPackage ../os-specific/linux/spl/default.nix { };
|
spl = callPackage ../os-specific/linux/spl/default.nix { };
|
||||||
|
@ -7131,6 +7129,8 @@ let
|
||||||
|
|
||||||
lm_sensors = callPackage ../os-specific/linux/lm-sensors { };
|
lm_sensors = callPackage ../os-specific/linux/lm-sensors { };
|
||||||
|
|
||||||
|
lockdep = callPackage ../os-specific/linux/lockdep { };
|
||||||
|
|
||||||
lsiutil = callPackage ../os-specific/linux/lsiutil { };
|
lsiutil = callPackage ../os-specific/linux/lsiutil { };
|
||||||
|
|
||||||
kmod = callPackage ../os-specific/linux/kmod { };
|
kmod = callPackage ../os-specific/linux/kmod { };
|
||||||
|
|
Loading…
Reference in New Issue