commit a whole bunch of statically linked packages. In the builder we add gzip to the PATH, because tar expects it to be there. This *should* be enough to bootstrap a whole new environment inside UML, give or take one or two packages I might have forgotten :)

svn path=/nixpkgs/trunk/; revision=1584
This commit is contained in:
Armijn Hemel 2004-10-19 15:16:14 +00:00
parent 99b011dc30
commit 41a9a00c9b
17 changed files with 218 additions and 0 deletions

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a coreutils-5.0/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "coreutils-static-5.0";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/coreutils-5.0-static.tar.gz;
tarball = "coreutils-5.0-static.tar.gz";
}

View File

@ -0,0 +1,22 @@
{stdenv, glibc, pkgs, genericStdenv, gccWrapper}:
genericStdenv {
name = "stdenv-nix-linux-static";
preHook = ./prehook.sh;
initialPath = (import ./path.nix) {pkgs = (import ./pkgs.nix) {stdenv = stdenv;};};
inherit stdenv;
gcc = gccWrapper {
#name = pkgs.gcc.name;
nativeTools = false;
nativeGlibc = false;
inherit (pkgs) binutils;
gcc = (import ./gcc-static) {stdenv = stdenv;};
inherit stdenv glibc;
shell = pkgs.bash ~ /bin/sh;
};
shell = pkgs.bash ~ /bin/sh;
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a diffutils-2.8.1/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "diffutils-static-2.8.1";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/diffutils-2.8.1-static.tar.gz;
tarball = "diffutils-2.8.1-static.tar.gz";
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a findutils-4.1.20/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "findutils-static-4.1.20";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/findutils-4.1.20-static.tar.gz;
tarball = "findutils-4.1.20-static.tar.gz";
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a gawk-3.1.3/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "gawk-static-3.1.3";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/gawk-3.1.3-static.tar.gz;
tarball = "gawk-3.1.3-static.tar.gz";
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a grep-2.5.1/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "gnugrep-static-2.5.1";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/grep-2.5.1-static.tar.gz;
tarball = "grep-2.5.1-static.tar.gz";
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a make-3.80/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "gnumake-static-3.80";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/make-3.80-static.tar.gz;
tarball = "make-3.80-static.tar.gz";
}

View File

@ -0,0 +1,8 @@
. $stdenv/setup
PATH=$gzip:$PATH
$curl/bin/curl $src > $tarball
$tar/bin/tar zxvf $tarball
mkdir $out
cp -a sed-4.0.7/* $out

View File

@ -0,0 +1,9 @@
{stdenv, gnutar, gzip, curl}:
stdenv.mkDerivation {
inherit curl gzip gnutar;
name = "gnused-static-4.0.7";
builder = ./builder.sh;
src = http://losser.st-lab.cs.uu.nl/~armijn/.nix/sed-4.0.7-static.tar.gz;
tarball = "sed-4.0.7-static.tar.gz";
}

View File

@ -0,0 +1,13 @@
{pkgs}: [
pkgs.coreutils
pkgs.findutils
pkgs.diffutils
pkgs.gnused
pkgs.gnugrep
pkgs.gawk
pkgs.gnutar
pkgs.gzip
pkgs.bzip2
pkgs.gnumake
pkgs.bash
]

View File

@ -0,0 +1,64 @@
{stdenv}:
rec {
inherit stdenv;
curl = (import ./curl-static) {
inherit stdenv;
};
### TOOLS
coreutils = (import ./coreutils-static) {
inherit stdenv gnutar gzip curl;
};
findutils = (import ./findutils-static) {
inherit stdenv gnutar gzip curl;
};
diffutils = (import ./diffutils-static) {
inherit stdenv gnutar gzip curl;
};
gnused = (import ./gnused-static) {
inherit stdenv gnutar gzip curl;
};
gnugrep = (import ./gnugrep-static) {
inherit stdenv gnutar gzip curl;
};
gawk = (import ./gawk-static) {
inherit stdenv gnutar gzip curl;
};
gnutar = (import ./gnutar-static) {
inherit stdenv;
};
gzip = (import ./gzip-static) {
inherit stdenv;
};
bzip2 = (import ./bzip2-static) {
inherit stdenv gnutar gzip curl;
};
binutils = (import ./binutils-static) {
inherit stdenv gnutar gzip curl;
};
gnumake = (import ./gnumake-static) {
inherit stdenv gnutar gzip curl;
};
gcc = (import ./gcc-static) {
inherit stdenv;
};
bash = (import ./bash-static) {
inherit stdenv;
};
}