python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / filesystems / zpool-auto-expand-partitions / default.nix
blobafafbca58baf1dc7359f55323d8493f305b456fc
1 { rustPlatform
2 , cloud-utils
3 , fetchFromGitHub
4 , lib
5 , llvmPackages
6 , pkg-config
7 , util-linux
8 , zfs
9 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "zpool-auto-expand-partitions";
12   version = "0.1.0";
14   src = fetchFromGitHub {
15     owner = "DeterminateSystems";
16     repo = "zpool-auto-expand-partitions";
17     rev = "v${version}";
18     hash = "sha256-LA6YO6vv7VCXwFfayQVxVR80niSCo89sG0hqh0wDEh8=";
19   };
21   cargoHash = "sha256-5v0fqp8aro+QD/f5VudMREc8RvKQapNAoArcCKMN1Sw=";
23   preBuild = ''
24     substituteInPlace src/grow.rs \
25       --replace '"growpart"' '"${cloud-utils}/bin/growpart"'
26     substituteInPlace src/lsblk.rs \
27       --replace '"lsblk"' '"${util-linux}/bin/lsblk"'
28   '';
30   nativeBuildInputs = [
31     pkg-config
32     rustPlatform.bindgenHook
33   ];
35   buildInputs = [
36     util-linux
37     zfs
38   ];
40   meta = with lib; {
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;
45   };