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