2013-07-02 16:35:31 +01:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, blivet
|
|
|
|
# Propagated to blivet
|
|
|
|
, useNixUdev ? null, udevSoMajor ? null
|
|
|
|
}:
|
2013-07-02 16:02:14 +01:00
|
|
|
|
2013-07-02 16:35:31 +01:00
|
|
|
let
|
|
|
|
blivetOverrides = stdenv.lib.filterAttrs (k: v: v != null) {
|
|
|
|
inherit useNixUdev udevSoMajor;
|
|
|
|
};
|
|
|
|
in buildPythonPackage rec {
|
2013-07-02 16:02:14 +01:00
|
|
|
name = "nixpart-${version}";
|
2013-07-12 17:38:41 +01:00
|
|
|
version = "0.4.0";
|
2013-07-02 16:02:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/aszlig/nixpart/archive/v${version}.tar.gz";
|
2013-07-12 17:38:41 +01:00
|
|
|
sha256 = "1kgiyqh7gndr0zs3qgi6r0dpy5p71d32c2k9kbd8pjf2xyyb6fk6";
|
2013-07-02 16:02:14 +01:00
|
|
|
};
|
|
|
|
|
2013-07-02 16:35:31 +01:00
|
|
|
propagatedBuildInputs = [ (blivet.override blivetOverrides) ];
|
2013-07-02 16:02:14 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "NixOS storage manager/partitioner";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.aszlig ];
|
|
|
|
};
|
|
|
|
}
|