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:
@@ -12,7 +12,7 @@ let
|
||||
optionals = ["libX11"];
|
||||
defaultFlags = [ "demos" "doc" ];
|
||||
};
|
||||
in args.stdenv.mkDerivation {
|
||||
in stdenv.mkDerivation {
|
||||
|
||||
inherit name;
|
||||
inherit (co) /* flags */ buildInputs configureFlags;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
args:
|
||||
args.stdenv.mkDerivation {
|
||||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name = "maven-2.0.8-bin";
|
||||
|
||||
src = args.fetchurl {
|
||||
src = fetchurl {
|
||||
# TODO mirrors
|
||||
url = http://apache.linux-mirror.org/maven/binaries/apache-maven-2.0.8-bin.tar.bz2;
|
||||
sha256 = "1wasvqplw7xk04j38vsq94zbrlpdg2k4348bg8730snr6zgaasai";
|
||||
@@ -14,8 +14,6 @@ args.stdenv.mkDerivation {
|
||||
ensureDir \$out; mv * \$out
|
||||
";
|
||||
|
||||
buildInputs =(with args; []);
|
||||
|
||||
meta = {
|
||||
description = "Java build tool";
|
||||
homepage = "apache.org";
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
args:
|
||||
args: with args;
|
||||
args.stdenv.mkDerivation {
|
||||
name = "ntfsprogs-2.0.0";
|
||||
|
||||
src = args.fetchurl {
|
||||
src = fetchurl {
|
||||
name = "ntfsprogs-2.0.0.tar.bz2";
|
||||
url = "http://garr.dl.sourceforge.net/sourceforge/linux-ntfs/ntfsprogs-2.0.0.tar.bz2";
|
||||
sha256 = "ad36e19706c7303b10aa0a9bf2c2dd0309b91cd0171f1c9eb361d94a85017432";
|
||||
};
|
||||
|
||||
buildInputs =(with args; []);
|
||||
|
||||
meta = {
|
||||
description = "ntfs utilities";
|
||||
homepage = http://sourceforge.net/projects/linux-ntfs;
|
||||
|
||||
Reference in New Issue
Block a user