diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2008-01-30 17:20:48 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2008-01-30 17:20:48 +0000 |
commit | 5bca69ac34e4b9aaa233aef75396830f42b2d3d7 (patch) | |
tree | 8d9c956fd7dcf0a68c46db61ded970e81a98736b /pkgs/tools/X11/xmacro/default.nix | |
parent | f831e0420a6b17799bec42fdaaee2f11d8794ff8 (diff) |
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
Diffstat (limited to 'pkgs/tools/X11/xmacro/default.nix')
-rw-r--r-- | pkgs/tools/X11/xmacro/default.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/X11/xmacro/default.nix b/pkgs/tools/X11/xmacro/default.nix index c1f039a92157f..4cceb720e192b 100644 --- a/pkgs/tools/X11/xmacro/default.nix +++ b/pkgs/tools/X11/xmacro/default.nix @@ -1,8 +1,8 @@ -args: -args.stdenv.mkDerivation { +args: with args; +stdenv.mkDerivation { name = "xmacro"; - src = args.fetchurl { + src = fetchurl { url = mirror://sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz; md5 = "d2956b82f3d5380e58a75ccc721fb746"; }; @@ -11,6 +11,5 @@ args.stdenv.mkDerivation { preInstall="echo -e 'install:\n mkdir \${out}/bin;\n cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; "; - buildInputs = (with args; - [libX11 libXtst xextproto libXi inputproto]); + buildInputs = [libX11 libXtst xextproto libXi inputproto]; } |