2016-02-19 13:12:11 +01:00
|
|
|
{ stdenv, fetchurl, python, buildPythonApplication
|
2014-10-22 08:15:30 +02:00
|
|
|
# Propagated to blivet
|
2015-10-21 16:43:34 +02:00
|
|
|
, useNixUdev ? true
|
|
|
|
# No longer needed, but kept for backwards-compatibility with older NixOps.
|
|
|
|
, udevSoMajor ? null
|
2014-10-22 08:15:30 +02:00
|
|
|
# Propagated dependencies
|
|
|
|
, pkgs, urlgrabber
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
blivet = import ./blivet.nix {
|
2016-02-19 13:12:11 +01:00
|
|
|
inherit stdenv fetchurl buildPythonApplication;
|
2014-10-22 08:15:30 +02:00
|
|
|
inherit pykickstart pyparted pyblock cryptsetup multipath_tools;
|
2015-10-21 16:43:34 +02:00
|
|
|
inherit useNixUdev;
|
2016-09-05 18:59:00 +02:00
|
|
|
inherit (pkgs) lsof utillinux systemd;
|
2014-10-22 08:15:30 +02:00
|
|
|
libselinux = pkgs.libselinux.override { enablePython = true; };
|
|
|
|
};
|
|
|
|
|
|
|
|
cryptsetup = import ./cryptsetup.nix {
|
|
|
|
inherit stdenv fetchurl python;
|
|
|
|
inherit (pkgs) pkgconfig libgcrypt libuuid popt;
|
|
|
|
devicemapper = lvm2;
|
|
|
|
};
|
|
|
|
|
|
|
|
dmraid = import ./dmraid.nix {
|
|
|
|
inherit stdenv fetchurl;
|
|
|
|
devicemapper = lvm2;
|
|
|
|
};
|
|
|
|
|
|
|
|
lvm2 = import ./lvm2.nix {
|
|
|
|
inherit stdenv fetchurl;
|
2016-09-05 18:59:00 +02:00
|
|
|
inherit (pkgs) pkgconfig utillinux systemd coreutils;
|
2014-10-22 08:15:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
multipath_tools = import ./multipath-tools.nix {
|
|
|
|
inherit stdenv fetchurl lvm2;
|
2015-10-03 20:52:03 +02:00
|
|
|
inherit (pkgs) readline systemd libaio gzip;
|
2014-10-22 08:15:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
parted = import ./parted.nix {
|
|
|
|
inherit stdenv fetchurl;
|
|
|
|
inherit (pkgs) utillinux readline libuuid gettext check;
|
|
|
|
devicemapper = lvm2;
|
|
|
|
};
|
|
|
|
|
|
|
|
pyblock = import ./pyblock.nix {
|
|
|
|
inherit stdenv fetchurl python lvm2 dmraid;
|
|
|
|
};
|
|
|
|
|
|
|
|
pykickstart = import ./pykickstart.nix {
|
2016-02-19 13:12:11 +01:00
|
|
|
inherit stdenv fetchurl python buildPythonApplication urlgrabber;
|
2014-10-22 08:15:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pyparted = import ./pyparted.nix {
|
2016-02-19 13:12:11 +01:00
|
|
|
inherit stdenv fetchurl python buildPythonApplication parted;
|
2014-10-22 08:15:30 +02:00
|
|
|
inherit (pkgs) pkgconfig e2fsprogs;
|
|
|
|
};
|
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
in buildPythonApplication rec {
|
2014-10-22 08:15:30 +02:00
|
|
|
name = "nixpart-${version}";
|
|
|
|
version = "0.4.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/aszlig/nixpart/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0avwd8p47xy9cydlbjxk8pj8q75zyl68gw2w6fnkk78dcb1a3swp";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ blivet ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "NixOS storage manager/partitioner";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.aszlig ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|