* Started on working towards the fully Nixified build environment, i.e., one
where we don't use any tools from outside the Nix environment. For this we need the basic POSIX utilities (e.g., GNU coreutils), a shell, GCC, and the binutils. Normal packages just need to include stdenv/stdenv.fix, which on Linux will use the Nixified environment. However, for the tools in the build environment itself we have a bootstrapping problem. Therefore, these depend on the external environment (and include stdenv-linux/stdenv-nativetools). The package `baseenv' provides some generic setup and GCC wrappers used by both fully Nixified and native environments. svn path=/nixpkgs/trunk/; revision=305
This commit is contained in:
9
pkgs/coreutils/coreutils-build.sh
Executable file
9
pkgs/coreutils/coreutils-build.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $src || exit 1
|
||||
cd coreutils-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
13
pkgs/coreutils/coreutils.fix
Normal file
13
pkgs/coreutils/coreutils.fix
Normal file
@@ -0,0 +1,13 @@
|
||||
Package(
|
||||
[ ("name", "coreutils-5.0")
|
||||
|
||||
, ("build", Relative("coreutils/coreutils-build.sh"))
|
||||
|
||||
, ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
|
||||
[ ("url", "ftp://ftp.nluug.nl/pub/gnu/coreutils/coreutils-5.0.tar.bz2")
|
||||
, ("md5", "94e5558ee2a65723d4840bfde2d323f0")
|
||||
]))
|
||||
|
||||
, ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix"))
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user