fixes for previous commit

svn path=/nixpkgs/trunk/; revision=13662
This commit is contained in:
Marc Weber 2008-12-20 02:15:26 +00:00
parent e996113be7
commit 5638574907
3 changed files with 7 additions and 5 deletions

View file

@ -1,6 +1,6 @@
args: with args;
assert fltk.flag_set_gl;
assert fltk.glSupport;
stdenv.mkDerivation {
name ="openexr_viewers-1.0.1";

View file

@ -13,6 +13,7 @@
p: # p = pkgs
let
inherit (p) lib fetchurl stdenv getConfig;
inherit (p.composableDerivation) composableDerivation;
# withName prevents nix-env -qa \* from aborting (pythonLibStub is a derivation but hasn't a name)
withName = lib.mapAttrs (n : v : if (__isAttrs v && (!__hasAttr "name" v)) then null else v);
in
@ -24,7 +25,8 @@ in
# see pythonFull.
pythonMinimal = ( (import ./python.nix) {
name = "python-${t.version}";
inherit (p) fetchurl stdenv lib bzip2 ncurses composableDerivation;
inherit composableDerivation;
inherit (p) fetchurl stdenv lib bzip2 ncurses;
inherit (p) zlib sqlite db4 readline openssl gdbm;
});
@ -72,7 +74,7 @@ in
# lib to verify it works
# You can define { python25 { debugCmd = "DISPLAY=:0.0 pathtoxterm"; }
# in your config for easier debugging..
pythonLibStub = p.composableDerivation {
pythonLibStub = composableDerivation {
initial = {
propagatedBuildInputs = [ t.pythonFull ]; # see [1]
postPhases = ["postAll"]; # using new name so that you dno't override this phase by accident
@ -465,7 +467,7 @@ in
### python applications
pythonExStub = p.composableDerivation {
pythonExStub = composableDerivation {
initial = {
buildInputs = [p.makeWrapper];
postPhases = ["wrapExecutables"];

View file

@ -803,7 +803,7 @@ rec {
else throw "assertion of flag ${a} of derivation ${args.name} failed"
) args2.flags );
in removeAttrs
(mergeAttrsByFuncDefaults ([args] ++ opts))
(mergeAttrsByFuncDefaults ([args] ++ opts ++ [{ passthru = cfgWithDefaults; }]))
["flags" "cfg" "mergeAttrBy" "fixed" ]; # fixed may be passed as fix argument or such
}