nixpkgs/pkgs-ng/os-specific/linux/kernel-headers/builder.sh
Eelco Dolstra 549a0a807f * Stdenv for Linux, i.e., with a Nix-built glibc.
svn path=/nixpkgs/trunk/; revision=461
2003-11-02 22:25:26 +00:00

13 lines
291 B
Bash
Executable File

#! /bin/sh
. $stdenv/setup || exit 1
tar xvfj $src || exit 1
cd linux-* || exit 1
make include/linux/version.h || exit 1
mkdir $out || exit 1
mkdir $out/include || exit 1
cp -prvd include/linux include/asm-i386 $out/include || exit 1
cd $out/include || exit 1
ln -s asm-i386 asm || exit 1