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:
parent
99b011dc30
commit
41a9a00c9b
8
pkgs/stdenv/nix-linux-static/coreutils-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/coreutils-static/builder.sh
Normal 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
|
@ -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";
|
||||||
|
}
|
22
pkgs/stdenv/nix-linux-static/default.nix
Normal file
22
pkgs/stdenv/nix-linux-static/default.nix
Normal 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;
|
||||||
|
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/diffutils-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/diffutils-static/builder.sh
Normal 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
|
@ -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";
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/findutils-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/findutils-static/builder.sh
Normal 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
|
@ -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";
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/gawk-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/gawk-static/builder.sh
Normal 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
|
9
pkgs/stdenv/nix-linux-static/gawk-static/default.nix
Normal file
9
pkgs/stdenv/nix-linux-static/gawk-static/default.nix
Normal 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";
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/gnugrep-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/gnugrep-static/builder.sh
Normal 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
|
9
pkgs/stdenv/nix-linux-static/gnugrep-static/default.nix
Normal file
9
pkgs/stdenv/nix-linux-static/gnugrep-static/default.nix
Normal 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";
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/gnumake-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/gnumake-static/builder.sh
Normal 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
|
9
pkgs/stdenv/nix-linux-static/gnumake-static/default.nix
Normal file
9
pkgs/stdenv/nix-linux-static/gnumake-static/default.nix
Normal 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";
|
||||||
|
}
|
8
pkgs/stdenv/nix-linux-static/gnused-static/builder.sh
Normal file
8
pkgs/stdenv/nix-linux-static/gnused-static/builder.sh
Normal 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
|
9
pkgs/stdenv/nix-linux-static/gnused-static/default.nix
Normal file
9
pkgs/stdenv/nix-linux-static/gnused-static/default.nix
Normal 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";
|
||||||
|
}
|
13
pkgs/stdenv/nix-linux-static/path.nix
Normal file
13
pkgs/stdenv/nix-linux-static/path.nix
Normal 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
|
||||||
|
]
|
64
pkgs/stdenv/nix-linux-static/pkgs.nix
Normal file
64
pkgs/stdenv/nix-linux-static/pkgs.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user