* 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

1
pkgs/tools/compression/bzip2/builder.sh Executable file → Normal file
View File

@@ -1,4 +1,3 @@
#! /bin/sh -e
. $stdenv/setup
installFlags="PREFIX=$out"
genericBuild

View File

@@ -1,12 +1,10 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "bzip2-1.0.2";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = ftp://sources.redhat.com/pub/bzip2/v102/bzip2-1.0.2.tar.gz;
md5 = "ee76864958d568677f03db8afad92beb";
};
inherit stdenv;
}

View File

@@ -1,3 +0,0 @@
#! /bin/sh -e
. $stdenv/setup
genericBuild

View File

@@ -1,12 +1,9 @@
{stdenv, fetchurl}:
derivation {
stdenv.mkDerivation {
name = "gzip-1.3.3";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://www.gzip.org/gzip-1.3.3.tar.gz;
md5 = "52eaf713673507d21f7abefee98ba662";
};
inherit stdenv;
}