mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 06:31:20 +00:00
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:
parent
ad9af11c1a
commit
b2311fbf3a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user