diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-15 16:50:29 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-15 16:50:29 +0200 |
commit | 0fc9f65ff28abda378e8c7967804e3cf05351ba7 (patch) | |
tree | dd1d91251cac6fff47806c39ba6e7662a223b21a /pkgs/os-specific/linux/kernel-headers | |
parent | d2ee6e6a247094d91f3e94954ec0fa799aac6e1c (diff) | |
download | nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar.gz nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar.bz2 nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar.lz nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar.xz nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.tar.zst nixlib-0fc9f65ff28abda378e8c7967804e3cf05351ba7.zip |
linux-headers-2.6.28: Remove, no longer used
Diffstat (limited to 'pkgs/os-specific/linux/kernel-headers')
-rw-r--r-- | pkgs/os-specific/linux/kernel-headers/2.6.28.nix | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/pkgs/os-specific/linux/kernel-headers/2.6.28.nix b/pkgs/os-specific/linux/kernel-headers/2.6.28.nix deleted file mode 100644 index 1ba03010f8ab..000000000000 --- a/pkgs/os-specific/linux/kernel-headers/2.6.28.nix +++ /dev/null @@ -1,61 +0,0 @@ -{stdenv, fetchurl, perl, cross ? null}: - -assert cross == null -> stdenv.isLinux; - -let version = "2.6.28.5"; in - -stdenv.mkDerivation { - name = "linux-headers-${version}"; - - src = fetchurl { - url = "mirror://kernel/linux/kernel/v2.6/linux-${version}.tar.bz2"; - sha256 = "0hifjh75sinifr5138v22zwbpqln6lhn65k8b57a1dyzlqca7cl9"; - }; - - targetConfig = if cross != null then cross.config else null; - - platform = - if cross != null then cross.arch else - if stdenv.system == "i686-linux" then "i386" else - if stdenv.system == "x86_64-linux" then "x86_64" else - if stdenv.system == "powerpc-linux" then "powerpc" else - if stdenv.isArm then "arm" else - if stdenv.system == "mips64el-linux" then "mips" else - abort "don't know what the kernel include directory is called for this platform"; - - buildInputs = [perl]; - - extraIncludeDirs = - if cross != null then - (if cross.arch == "powerpc" then ["ppc"] else []) - else if stdenv.system == "powerpc-linux" then ["ppc"] else []; - - patchPhase = '' - patch --verbose -p1 < "${./unifdef-getline.patch}" - sed -i '/scsi/d' include/Kbuild - sed -i 's|/ %/: prepare scripts FORCE|%/: prepare scripts FORCE|' Makefile - ''; - - buildPhase = '' - if test -n "$targetConfig"; then - export ARCH=$platform - fi - make mrproper headers_check - ''; - - installPhase = '' - make INSTALL_HDR_PATH=$out headers_install - - # Some builds (e.g. KVM) want a kernel.release. - mkdir -p $out/include/config - echo "${version}-default" > $out/include/config/kernel.release - ''; - - # !!! hacky - fixupPhase = '' - ln -s asm $out/include/asm-$platform - if test "$platform" = "i386" -o "$platform" = "x86_64"; then - ln -s asm $out/include/asm-x86 - fi - ''; -} |