python-nixpart: Propagate overrides of blivet.

This allows for easy overriding of blivets udev dependency using only
nixpart.override.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-07-02 17:35:31 +02:00
parent ad9af11c1a
commit b2311fbf3a
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -1,6 +1,13 @@
{ stdenv, fetchurl, buildPythonPackage, blivet }:
{ stdenv, fetchurl, buildPythonPackage, blivet
# Propagated to blivet
, useNixUdev ? null, udevSoMajor ? null
}:
buildPythonPackage rec {
let
blivetOverrides = stdenv.lib.filterAttrs (k: v: v != null) {
inherit useNixUdev udevSoMajor;
};
in buildPythonPackage rec {
name = "nixpart-${version}";
version = "0.2.0";
@ -9,7 +16,7 @@ buildPythonPackage rec {
sha256 = "1z94h76jn9igksgr84wwbi03fjamwb15hg432x189kgsld1ark4n";
};
propagatedBuildInputs = [ blivet ];
propagatedBuildInputs = [ (blivet.override blivetOverrides) ];
doCheck = false;