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/applications/graphics/exrdisplay/default.nix | |
parent | f831e0420a6b17799bec42fdaaee2f11d8794ff8 (diff) | |
download | nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar.gz nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar.bz2 nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar.lz nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar.xz nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.tar.zst nixpkgs-5bca69ac34e4b9aaa233aef75396830f42b2d3d7.zip |
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/applications/graphics/exrdisplay/default.nix')
-rw-r--r-- | pkgs/applications/graphics/exrdisplay/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/graphics/exrdisplay/default.nix b/pkgs/applications/graphics/exrdisplay/default.nix index 4778c4bf7c4..f82f07602f8 100644 --- a/pkgs/applications/graphics/exrdisplay/default.nix +++ b/pkgs/applications/graphics/exrdisplay/default.nix @@ -1,23 +1,23 @@ -args: +args: with args; -assert args.fltk.flag_set_gl; -args.stdenv.mkDerivation { +assert fltk.flag_set_gl; +stdenv.mkDerivation { name ="openexr_viewers-1.0.1"; - src = args.fetchurl { + src = fetchurl { url = "http://download.savannah.nongnu.org/releases/openexr/openexr_viewers-1.0.1.tar.gz"; sha256 = "1w5qbcdp7sw48z1wk2v07f7p14vqqb1m2ncxyxnbkm9f4ab0ymg6"; }; - inherit (args) fltk mesa; + inherit fltk mesa; configurePhase = " # don't know why.. adding these flags it works #export CXXFLAGS=`fltk-config --use-gl --cxxflags --ldflags` ./configure --prefix=\$out --with-fltk-config=\$fltk/bin/fltk-config"; - buildInputs =(with args; [openexr fltk pkgconfig mesa which openexr_ctl]); + buildInputs = [openexr fltk pkgconfig mesa which openexr_ctl]; meta = { description = "tool to view OpenEXR images"; |