10 rustPlatform.buildRustPackage rec {
11 pname = "zpool-auto-expand-partitions";
14 src = fetchFromGitHub {
15 owner = "DeterminateSystems";
16 repo = "zpool-auto-expand-partitions";
18 hash = "sha256-LA6YO6vv7VCXwFfayQVxVR80niSCo89sG0hqh0wDEh8=";
21 cargoHash = "sha256-5v0fqp8aro+QD/f5VudMREc8RvKQapNAoArcCKMN1Sw=";
24 substituteInPlace src/grow.rs \
25 --replace '"growpart"' '"${cloud-utils}/bin/growpart"'
26 substituteInPlace src/lsblk.rs \
27 --replace '"lsblk"' '"${util-linux}/bin/lsblk"'
32 rustPlatform.bindgenHook
41 description = "A tool that aims to expand all partitions in a specified zpool to fill the available space";
42 homepage = "https://github.com/DeterminateSystems/zpool-auto-expand-partitions";
43 license = licenses.asl20;
44 maintainers = teams.determinatesystems.members;