* 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:
2
pkgs/development/tools/build-managers/apache-ant/builder.sh
Executable file → Normal file
2
pkgs/development/tools/build-managers/apache-ant/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $src || exit 1
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{stdenv, fetchurl, j2sdk}: derivation {
|
||||
{stdenv, fetchurl, j2sdk}: stdenv.mkDerivation {
|
||||
name = "apache-ant-1.6.0";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://dist.apache.easynet.nl/ant/binaries/apache-ant-1.6.0-bin.tar.bz2;
|
||||
md5 = "01989c306da53862c101d9ea4ebb1f00";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#! /bin/sh -e
|
||||
. $stdenv/setup
|
||||
genericBuild
|
||||
@@ -1,14 +1,11 @@
|
||||
{stdenv, fetchurl, patch}:
|
||||
|
||||
derivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "gnumake-3.80";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/make/make-3.80.tar.bz2;
|
||||
md5 = "0bbd1df101bc0294d440471e50feca71";
|
||||
};
|
||||
patches = [./log.diff];
|
||||
buildInputs = [patch];
|
||||
inherit stdenv;
|
||||
}
|
||||
|
||||
2
pkgs/development/tools/misc/autoconf/builder.sh
Executable file → Normal file
2
pkgs/development/tools/misc/autoconf/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$m4 $perl"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -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
0
pkgs/development/tools/misc/autoconf/libtoolbuilder.sh
Executable file → Normal file
2
pkgs/development/tools/misc/automake/builder.sh
Executable file → Normal file
2
pkgs/development/tools/misc/automake/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$perl $autoconf"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/binutils/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
. $stdenv/setup
|
||||
|
||||
patchConfigure() {
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/gnum4/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $src || exit 1
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/gperf/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
. $stdenv/setup
|
||||
|
||||
tar xvfz $src
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/libtool/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$m4 $perl"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/octavefront/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
set -x
|
||||
|
||||
buildinputs="$autoconf $g77 $texinfo $bison $flex $gperf $rna $aterm"
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/pkgconfig/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup
|
||||
|
||||
tar xvfz $src
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/swig/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$perl $python"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/texinfo/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
buildinputs="$ncurses"
|
||||
. $stdenv/setup
|
||||
|
||||
|
||||
@@ -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
2
pkgs/development/tools/misc/valgrind/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
# !!! hack; this is because $linuxHeaders/config.h includes some
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm $ptsupport $toolbuslib $asfsupport"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/asf-support/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/asf-support/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm $ptsupport"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/bison/builder-new.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/bison/builder-new.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$m4"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/bison/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/bison/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$m4"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
{stdenv, fetchurl, m4}:
|
||||
assert m4 != null;
|
||||
derivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "bison-1.875";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/bison/bison-1.875.tar.bz2;
|
||||
md5 = "b7f8027b249ebd4dd0cc948943a71af0";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
m4 = m4;
|
||||
}
|
||||
|
||||
2
pkgs/development/tools/parsing/flex/builder-new.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/flex/builder-new.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
export buildinputs="$yacc $m4"
|
||||
. $stdenv/setup
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/flex/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/flex/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
export buildinputs="$yacc"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
{stdenv, fetchurl, yacc}:
|
||||
assert yacc != null;
|
||||
derivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "flex-2.5.4a";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/flex/flex-2.5.4a.tar.gz;
|
||||
md5 = "bd8753d0b22e1f4ec87a553a73021adf";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
yacc = yacc;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
buildinputs="$aterm $getopt $toolbuslib $ptsupport $sdfsupport $asfsupport $ascsupport $sglr"
|
||||
. $stdenv/setup
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/pt-support/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/pt-support/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm $toolbuslib"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/sdf-support/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/sdf-support/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm $ptsupport $toolbuslib"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/sdf2/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/sdf2/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh -e
|
||||
|
||||
buildinputs="$aterm $getopt"
|
||||
. $stdenv/setup
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
{stdenv, fetchurl, aterm, getopt}:
|
||||
derivation {
|
||||
stdenv.mkDerivation {
|
||||
name = "sdf2-1.6";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.stratego-language.org/pub/stratego/sdf2/sdf2-bundle-1.6.tar.gz;
|
||||
md5 = "283be0b4c7c9575c1b5cc735316e6192";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
aterm = aterm;
|
||||
getopt = getopt;
|
||||
}
|
||||
|
||||
2
pkgs/development/tools/parsing/sglr/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/sglr/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm $ptsupport $toolbuslib"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
2
pkgs/development/tools/parsing/toolbuslib/builder.sh
Executable file → Normal file
2
pkgs/development/tools/parsing/toolbuslib/builder.sh
Executable file → Normal file
@@ -1,5 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$aterm"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user