From 69dca5f4aa35fd2b32b49372f0400fbc570c9e16 Mon Sep 17 00:00:00 2001 From: Ludovic Stordeur Date: Mon, 11 Jul 2011 14:07:21 +0000 Subject: [PATCH] Add meta.platforms to the Linux kernel expression. svn path=/nixpkgs/trunk/; revision=27722 --- pkgs/os-specific/linux/kernel/generic.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 138c9a53d04..3fa316b1224 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -69,7 +69,7 @@ stdenv.mkDerivation { # Combine the `features' attribute sets of all the kernel patches. features = lib.fold (x: y: (if x ? features then x.features else {}) // y) features kernelPatches; }; - + builder = ./builder.sh; generateConfig = ./generate-config.pl; @@ -91,7 +91,7 @@ stdenv.mkDerivation { kernelBaseConfig = stdenv.platform.kernelBaseConfig; kernelTarget = stdenv.platform.kernelTarget; autoModules = stdenv.platform.kernelAutoModules; - + # Should we trust platform.kernelArch? We can only do # that once we differentiate i686/x86_64 in platforms. arch = @@ -137,5 +137,6 @@ stdenv.mkDerivation { license = "GPLv2"; homepage = http://www.kernel.org/; maintainers = [ lib.maintainers.eelco ]; + platforms = lib.platforms.linux; } // extraMeta; }