2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, python, buildPythonApplication
|
2020-04-24 23:36:52 +00:00
|
|
|
, libselinux
|
|
|
|
# Propagated to blivet
|
|
|
|
, useNixUdev ? true
|
|
|
|
# Needed by NixOps
|
|
|
|
, udevSoMajor ? null
|
|
|
|
# Propagated dependencies
|
|
|
|
, pkgs, urlgrabber
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
blivet = import ./blivet.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib fetchurl buildPythonApplication;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pykickstart pyparted pyblock cryptsetup libselinux multipath_tools;
|
|
|
|
inherit useNixUdev;
|
2020-11-24 20:58:05 +00:00
|
|
|
inherit (pkgs) lsof util-linux systemd;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cryptsetup = import ./cryptsetup.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl python;
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (pkgs) fetchpatch pkg-config libgcrypt libuuid popt lvm2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dmraid = import ./dmraid.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl lvm2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lvm2 = import ./lvm2.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl;
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (pkgs) fetchpatch pkg-config util-linux systemd coreutils;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
multipath_tools = import ./multipath-tools.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl lvm2;
|
2020-06-18 07:06:33 +00:00
|
|
|
inherit (pkgs) fetchpatch readline systemd libaio gzip;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
parted = import ./parted.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl;
|
2020-11-24 20:58:05 +00:00
|
|
|
inherit (pkgs) fetchpatch util-linux readline libuuid gettext check lvm2;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pyblock = import ./pyblock.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl python lvm2 dmraid;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pykickstart = import ./pykickstart.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib fetchurl python buildPythonApplication urlgrabber;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pyparted = import ./pyparted.nix {
|
2021-01-15 22:18:51 +00:00
|
|
|
inherit lib stdenv fetchurl python buildPythonApplication parted;
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (pkgs) pkg-config e2fsprogs;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in buildPythonApplication rec {
|
|
|
|
pname = "nixpart";
|
|
|
|
version = "0.4.1";
|
|
|
|
disabled = python.isPy3k;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/NixOS/nixpart/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0avwd8p47xy9cydlbjxk8pj8q75zyl68gw2w6fnkk78dcb1a3swp";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ blivet ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "NixOS storage manager/partitioner";
|
|
|
|
homepage = "https://github.com/NixOS/nixpart";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.aszlig ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|