git.iko.soy/typeable/nixpkgs
on master help sign in
linuxHeaders_2_{4,6}: remove
commit897eec7d7965f87bf859066e21affd6f2fa6b828 authorRobin Gloster <mail@glob.in> dateFri 11 Aug 2017, 19:12 (9 years ago) parent05b8cae
2 files changed−64
pkgs/os-specific/linux/kernel-headers/2.4.nix−54 pkgs/top-level/all-packages.nix−10
pkgs/os-specific/linux/kernel-headers/2.4.nixdeleted−54
@@ -1,54 +0,0 @@
1−{stdenv, fetchurl, perl, cross ? null}:
2−
3−assert cross == null -> stdenv.isLinux;
4−
5−let
6− version = "2.4.37.9";
7− kernelHeadersBaseConfig = if cross == null then
8− stdenv.platform.kernelHeadersBaseConfig
9− else
10− cross.platform.kernelHeadersBaseConfig;
11−in
12−
13−stdenv.mkDerivation {
14− name = "linux-headers-${version}";
15−
16− src = fetchurl {
17− url = "mirror://kernel/linux/kernel/v2.4/linux-${version}.tar.bz2";
18− sha256 = "08rca9lcb5l5w483hgaqk8pi2njd7cmwpkifjqxwlb3g8liz4r5g";
19− };
20−
21− targetConfig = if cross != null then cross.config else null;
22−
23− platform =
24− if cross != null then cross.platform.kernelArch else
25− if stdenv.system == "i686-linux" then "i386" else
26− if stdenv.system == "x86_64-linux" then "x86_64" else
27− if stdenv.system == "powerpc-linux" then "powerpc" else
28− if stdenv.isArm then "arm" else
29− abort "don't know what the kernel include directory is called for this platform";
30−
31− buildInputs = [perl];
32−
33− patchPhase = ''
34− sed -i s,/bin/pwd,pwd, Makefile
35− '';
36−
37− extraIncludeDirs =
38− if cross != null then
39− (if cross.arch == "powerpc" then ["ppc"] else [])
40− else if stdenv.system == "powerpc-linux" then ["ppc"] else [];
41−
42− buildPhase = ''
43− cp arch/$platform/${kernelHeadersBaseConfig} .config
44− make mrproper symlinks include/linux/{version,compile}.h \
45− ARCH=$platform
46− yes "" | make oldconfig ARCH=$platform
47− '';
48−
49− installPhase = ''
50− mkdir -p $out/include
51− cp -a include/{asm,asm-$platform,acpi,linux,pcmcia,scsi,video} \
52− $out/include
53− '';
54−}
pkgs/top-level/all-packages.nix−10
@@ -12007,14 +12007,6 @@ with pkgs;
1200712007
1200812008 lkl = callPackage ../applications/virtualization/lkl { };
1200912009
12010− linuxHeaders_2_4 = callPackage ../os-specific/linux/kernel-headers/2.4.nix {
12011− cross = if targetPlatform != hostPlatform then targetPlatform else null;
12012− };
12013−
12014− linuxHeaders_2_6 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
12015− cross = if targetPlatform != hostPlatform then targetPlatform else null;
12016− };
12017−
1201812010 linuxHeaders_4_4 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
1201912011 cross = if targetPlatform != hostPlatform then targetPlatform else null;
1202012012 };
@@ -12024,8 +12016,6 @@ with pkgs;
1202412016 if targetPlatform != hostPlatform
1202512017 then
1202612018 { # switch
12027− "2.4" = linuxHeaders_2_4;
12028− "2.6" = linuxHeaders_2_6;
1202912019 "4.4" = linuxHeaders_4_4;
1203012020 }.${targetPlatform.platform.kernelMajor}
1203112021 or (throw "Unknown linux kernel version")