buildPythonPackage: Inherit extra attributes from its argument.

svn path=/nixpkgs/trunk/; revision=16080
This commit is contained in:
Ludovic Courtès 2009-06-28 14:05:41 +00:00
parent 705205340b
commit a84297a6e3

View File

@ -20,7 +20,13 @@ let
in in
python.stdenv.mkDerivation rec { python.stdenv.mkDerivation (
# Keep extra attributes from ATTR, e.g., `patchPhase', etc.
attrs
//
(rec {
inherit src meta patches doCheck; inherit src meta patches doCheck;
name = namePrefix + attrs.name; name = namePrefix + attrs.name;
@ -74,4 +80,4 @@ python.stdenv.mkDerivation rec {
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
fi fi
''; '';
} }))