git.iko.soy/typeable/nixpkgs
on master help sign in
linux-headers: Remove dead old version

This sat around unused for who knows how long

commitbaaed4c80151c3f3d02160f86b3bdecadd55445c authorJohn Ericson <John.Ericson@Obsidian.Systems> dateThu 14 Sep 2017, 19:23 (9 years ago) parent7d5633e
1 file changed−29
pkgs/os-specific/linux/kernel-headers/default.nix−29
pkgs/os-specific/linux/kernel-headers/default.nixdeleted−29
@@ -1,29 +0,0 @@
1−{ stdenv, kernel, perl
2−, hostPlatform
3−}:
4−
5−let
6− baseBuildFlags = [ "INSTALL_HDR_PATH=$(out)" "headers_install" ];
7−in stdenv.mkDerivation {
8− name = "linux-headers-${kernel.version}";
9−
10− inherit (kernel) src patches;
11−
12− nativeBuildInputs = [ perl ];
13−
14− buildFlags = [ "ARCH=${stdenv.platform.kernelArch}" ] ++ baseBuildFlags;
15−
16− crossAttrs = {
17− inherit (kernel.crossDrv) src patches;
18− buildFlags = [ "ARCH=${hostPlatform.platform.kernelArch}" ] ++ baseBuildFlags;
19− };
20−
21− installPhase = ''
22− find $out \( -name ..install.cmd -o -name .install \) -print0 | xargs -0 rm
23− '';
24−
25− # Headers shouldn't reference anything else
26− allowedReferences = [];
27−
28− meta.platforms = stdenv.lib.platforms.linux;
29−}