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