* Remove trivial builders.

* Make builders unexecutable by removing the hash-bang line and
  execute permission.
* Convert calls to `derivation' to `mkDerivation'.
* Remove `system' and `stdenv' attributes from calls to
  `mkDerivation'.  These transformations were all done automatically,
  so it is quite possible I broke stuff.
* Put the `mkDerivation' function in stdenv/generic.

svn path=/nixpkgs/trunk/; revision=874
This commit is contained in:
Eelco Dolstra
2004-03-29 17:23:01 +00:00
parent bc71554fc8
commit 12ae5363ea
297 changed files with 259 additions and 807 deletions

2
pkgs/development/tools/misc/autoconf/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
buildinputs="$m4 $perl"
. $stdenv/setup || exit 1

View File

@@ -1,13 +1,11 @@
{stdenv, fetchurl, m4, perl}:
derivation {
stdenv.mkDerivation {
name = "autoconf-2.58";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/autoconf/autoconf-2.58.tar.bz2;
md5 = "db3fa3069c6554b3505799c7e1022e2b";
};
stdenv = stdenv;
m4 = m4;
perl = perl;
}

0
pkgs/development/tools/misc/autoconf/libtoolbuilder.sh Executable file → Normal file
View File

2
pkgs/development/tools/misc/automake/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
buildinputs="$perl $autoconf"
. $stdenv/setup || exit 1

View File

@@ -1,13 +1,11 @@
{stdenv, fetchurl, perl, autoconf}:
derivation {
stdenv.mkDerivation {
name = "automake-1.7.9";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/automake/automake-1.7.9.tar.bz2;
md5 = "571fd0b0598eb2a27dcf68adcfddfacb";
};
stdenv = stdenv;
perl = perl;
autoconf = autoconf;
}

2
pkgs/development/tools/misc/binutils/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh -e
. $stdenv/setup
patchConfigure() {

View File

@@ -1,12 +1,11 @@
{stdenv, fetchurl, noSysDirs}:
derivation {
stdenv.mkDerivation {
name = "binutils-2.14";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nl.net/pub/gnu/binutils/binutils-2.14.tar.bz2;
md5 = "2da8def15d28af3ec6af0982709ae90a";
};
inherit stdenv noSysDirs;
inherit noSysDirs;
}

2
pkgs/development/tools/misc/gnum4/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
. $stdenv/setup || exit 1
tar xvfz $src || exit 1

View File

@@ -1,11 +1,9 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "gnum4-1.4";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nluug.nl/pub/gnu/m4/m4-1.4.tar.gz;
md5 = "9eb2dd07740b2d2f3c7adb3e8d299bda";
};
stdenv = stdenv;
}

2
pkgs/development/tools/misc/gperf/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh -e
. $stdenv/setup
tar xvfz $src

View File

@@ -1,12 +1,10 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "gperf-2.7.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gnu.org/gnu/gperf/gperf-2.7.2.tar.gz;
md5 = "e501acc2e18eed2c8f25ca0ac2330d68";
};
inherit stdenv;
}

2
pkgs/development/tools/misc/libtool/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
buildinputs="$m4 $perl"
. $stdenv/setup || exit 1

View File

@@ -1,13 +1,11 @@
{stdenv, fetchurl, m4, perl}:
derivation {
stdenv.mkDerivation {
name = "libtool-1.5";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz;
md5 = "0e1844f25e2ad74c3715b5776d017545";
};
stdenv = stdenv;
m4 = m4;
perl = perl;
}

2
pkgs/development/tools/misc/octavefront/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh -e
set -x
buildinputs="$autoconf $g77 $texinfo $bison $flex $gperf $rna $aterm"

View File

@@ -7,13 +7,12 @@ assert autoconf != null && texinfo != null
&& rna != null && aterm != null;
assert g77.langF77;
derivation {
stdenv.mkDerivation {
name = "octavefront-0.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.radionetworkprocessor.com/pub/radionetworkprocessor/octavefront-0.2.tar.gz;
md5 = "14e02d060fd6afc6752dbba0a7445ff2";
};
inherit stdenv autoconf g77 texinfo bison flex gperf rna aterm;
inherit autoconf g77 texinfo bison flex gperf rna aterm;
}

2
pkgs/development/tools/misc/pkgconfig/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
. $stdenv/setup
tar xvfz $src

View File

@@ -1,13 +1,11 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "pkgconfig-0.15.0";
system = stdenv.system;
builder = ./builder.sh;
setupHook = ./setup-hook.sh;
src = fetchurl {
url = http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-0.15.0.tar.gz;
md5 = "a7e4f60a6657dbc434334deb594cc242";
};
inherit stdenv;
}

2
pkgs/development/tools/misc/swig/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
buildinputs="$perl $python"
. $stdenv/setup || exit 1

View File

@@ -4,9 +4,8 @@
assert perlSupport -> perl != null;
assert pythonSupport -> python != null;
derivation {
stdenv.mkDerivation {
name = "swig-1.3.19";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
@@ -17,7 +16,6 @@ derivation {
perlSupport = perlSupport;
pythonSupport = pythonSupport;
stdenv = stdenv;
perl = if perlSupport then perl else null;
python = if pythonSupport then python else null;
}

2
pkgs/development/tools/misc/texinfo/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh -e
buildinputs="$ncurses"
. $stdenv/setup

View File

@@ -2,13 +2,12 @@
assert ncurses != null;
derivation {
stdenv.mkDerivation {
name = "texinfo-4.6";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.gnu.org/gnu/texinfo/texinfo-4.6.tar.gz;
md5 = "5730c8c0c7484494cca7a7e2d7459c64";
};
inherit stdenv ncurses;
inherit ncurses;
}

2
pkgs/development/tools/misc/valgrind/builder.sh Executable file → Normal file
View File

@@ -1,5 +1,3 @@
#! /bin/sh
. $stdenv/setup || exit 1
# !!! hack; this is because $linuxHeaders/config.h includes some

View File

@@ -1,12 +1,10 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "valgrind-2.1.0";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://developer.kde.org/~sewardj/valgrind-2.1.0.tar.bz2;
md5 = "3e4056dd45163a5f555a23ced2f95191";
};
stdenv = stdenv;
}