From a84297a6e3a6c2243c59dd9e1a542555b942daba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 28 Jun 2009 14:05:41 +0000 Subject: [PATCH] buildPythonPackage: Inherit extra attributes from its argument. svn path=/nixpkgs/trunk/; revision=16080 --- pkgs/development/python-modules/generic/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 609cb5d6cb48..96b2e25d6f99 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -20,7 +20,13 @@ let in -python.stdenv.mkDerivation rec { +python.stdenv.mkDerivation ( + # Keep extra attributes from ATTR, e.g., `patchPhase', etc. + attrs + + // + + (rec { inherit src meta patches doCheck; 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 fi ''; -} +}))