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:
@@ -1,17 +1,17 @@
|
||||
args:
|
||||
args.stdenv.mkDerivation {
|
||||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name = "openexr_ctl-1.0.1";
|
||||
|
||||
src = args.fetchurl {
|
||||
src = fetchurl {
|
||||
url = http://kent.dl.sourceforge.net/sourceforge/ampasctl/openexr_ctl-1.0.1.tar.gz;
|
||||
sha256 = "1jg9smpaplal8l14djp184wzk11nwd3dvm4lhkp69kjgw8jdd21d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = (with args; [ilmbase]);
|
||||
buildInputs = ( with args; [openexr ctl]);
|
||||
configureFlags="--with-ilmbase-prefix=${args.ilmbase}";
|
||||
propagatedBuildInputs = [ilmbase];
|
||||
buildInputs = [openexr ctl];
|
||||
configureFlags="--with-ilmbase-prefix=${ilmbase}";
|
||||
#configurePhase = "
|
||||
#export CXXFLAGS=\"-I${args.ilmbase}/include -L${args.ilmbase}/lib\"
|
||||
#export CXXFLAGS=\"-I${ilmbase}/include -L${ilmbase}/lib\"
|
||||
#echo $CXXFLAGS
|
||||
#unset configurePhase; configurePhase
|
||||
#";
|
||||
|
||||
Reference in New Issue
Block a user