Nix-expr style review

Unneded args.something replaced with
args: with args;
line. After this line args is the only place where we can recieve variables from.

Also removed several
buildInputs = [];
lines.

svn path=/nixpkgs/trunk/; revision=10415
This commit is contained in:
Yury G. Kudryashov
2008-01-30 17:20:48 +00:00
parent f831e0420a
commit 5bca69ac34
53 changed files with 220 additions and 248 deletions
+6 -6
View File
@@ -1,18 +1,18 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "blender-2.45";
src = args.fetchurl {
src = fetchurl {
url = http://download.blender.org/source/blender-2.45.tar.gz;
sha256 = "1bi7j1fcvrpb96sjpcbm4sldf359sgskfhv7a8pgcxj0bnhp47wj";
};
phases="unpackPhase buildPhase";
inherit (args) scons SDL freetype openal python openexr mesa;
inherit scons SDL freetype openal python openexr mesa;
buildInputs =(with args; [python scons
gettext libjpeg libpng zlib freetype /* fmod smpeg */ freealut openal x11 mesa inputproto libtiff libXi ]);
buildInputs = [python scons
gettext libjpeg libpng zlib freetype /* fmod smpeg */ freealut openal x11 mesa inputproto libtiff libXi ];
# patch SConstruct so that we can pass on additional include. Either blender
# or openEXR is broken. I think OpenEXR should use include "" isntead of <> to
+5 -5
View File
@@ -1,10 +1,10 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "d4x-2.5.7.1";
inherit (args) boost;
inherit boost;
src = args.fetchurl {
src = fetchurl {
url = http://d4x.krasu.ru/files/d4x-2.5.7.1.tar.bz2;
sha256 = "1i1jj02bxynisqapv31481sz9jpfp3f023ky47spz1v1wlwbs13m";
};
@@ -12,7 +12,7 @@ args.stdenv.mkDerivation {
configurePhase = "./configure --prefix=\$out "
+ " --with-boost-libdir=\$boost/lib"
+ " --with-boost-includedir=\$boost/include";
buildInputs =(with args; [gtk glib pkgconfig openssl boost]);
buildInputs = [gtk glib pkgconfig openssl boost];
meta = {
description = "graphical download manager";
+3 -5
View File
@@ -1,8 +1,8 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "flite-1.3-release";
src = args.fetchurl {
src = fetchurl {
url = http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/flite-1.3-release.tar.gz;
sha256 = "12wanxx57bbqgkag54dlqzv6h2kr9053p0z8mkxs0mqy03vja8lj";
};
@@ -18,8 +18,6 @@ args.stdenv.mkDerivation {
cp -r bin \$out
";
buildInputs = (with args; []);
meta = {
description = "Flite text to speech engine";
homepage = http://www.speech.cs.cmu.edu/flite/download.html;
+5 -5
View File
@@ -1,15 +1,15 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "freemind-0.9.0_Beta_13";
src = args.fetchurl {
src = fetchurl {
url = http://downloads.sourceforge.net/freemind/freemind-src-0.9.0_Beta_13_icon_butterfly.tar.gz;
sha256 = "00389bhg73qknydrq0f3bskb5lyrdg2p58mnnp19wdvzzmfbic4w";
};
buildInputs =(with args; [jdk ant]);
buildInputs = [jdk ant];
inherit (args) jre;
inherit jre;
phases="buildPhase installPhase";
+2 -2
View File
@@ -10,11 +10,11 @@ let
};
};
in args.stdenv.mkDerivation {
in stdenv.mkDerivation {
inherit (co) buildInputs configureFlags;
src = args.fetchurl {
src = fetchurl {
url = mirror://sourceforge/materm/mrxvt-0.5.3.tar.gz;
sha256 = "04flnn58hp4qvvk6jzyipsj13v1qyrjabgbw5laz5cqxvxzpncp2";
};
+4 -4
View File
@@ -1,14 +1,14 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "pgadmin3-1.8.1";
src = args.fetchurl {
src = fetchurl {
name = "pgadmin3-v1.8.1.tar.gz";
url = "http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org//pgadmin3/release/v1.8.1/src/pgadmin3-1.8.1.tar.gz";
sha256 = "1vnpbgb2ksvcgbzab4jjspwvs5cvam53azinfavjad4kpjczdywb";
};
buildInputs =(with args; [postgresql wxGTK libxml2 libxslt openssl]);
buildInputs = [postgresql wxGTK libxml2 libxslt openssl];
meta = {
description = "postgresql admin gui tool";
+3 -4
View File
@@ -1,14 +1,13 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "pstree-2.31";
src = args.fetchurl {
src = fetchurl {
url = http://fresh.t-systems-sfr.com/unix/src/misc/pstree-2.31.tar.gz;
sha256 = "1zzz29gsyra8csk54cyq0pcdxxg3l4gmksq8q1skv2z84g2yxdhh";
};
unpackPhase="unpackFile \$src; sourceRoot=.";
#buildInputs =(with args; []);
buildPhase="pwd; gcc -o pstree pstree.c";
installPhase="ensureDir \$out/bin; cp pstree \$out/bin";
+4 -4
View File
@@ -1,13 +1,13 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "rxvt-2.6.4";
src = args.fetchurl {
src = fetchurl {
url = http://downloads.sourceforge.net/rxvt/rxvt-2.6.4.tar.gz;
sha256 = "0hi29whjv8v11nkjbq1i6ms411v6csykghmlpkmayfjn9nxr02xg";
};
buildInputs =(with args; [ libX11 libXt ]);
buildInputs = [ libX11 libXt ];
meta = {
description = "colour vt102 terminal emulator with less features and lower memory consumption";
+3 -3
View File
@@ -1,5 +1,5 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "sbagen-1.4.4";
buildPhases="buildPhase installPhase";
@@ -14,7 +14,7 @@ args.stdenv.mkDerivation {
";
src = args.fetchurl {
src = fetchurl {
url = http://uazu.net/sbagen/sbagen-1.4.4.tgz;
sha256 = "0w62yk1b0hq79kl0angma897yqa8p1ww0dwydf3zlwav333prkd2";
};
+4 -4
View File
@@ -1,15 +1,15 @@
args:
args.stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "synergy-cvs";
src = args.fetchcvs {
src = fetchcvs {
url = ":pserver:anonymous@synergy2.cvs.sourceforge.net:/cvsroot/synergy2";
module = "synergy";
date = "NOW";
sha256 = "ef8e2ebfda6e43240051a7af9417092b2af50ece8b5c6c3fbd908ba91c4fe068";
};
buildInputs =(with args; [x11 xextproto libXtst inputproto]);
buildInputs = [x11 xextproto libXtst inputproto];
meta= {
description = "share mouse keyboard and clipboard between computers";