depot/third_party/nixpkgs/pkgs/tools/misc/thin-provisioning-tools/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
882 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, nixosTests }:
rustPlatform.buildRustPackage rec {
pname = "thin-provisioning-tools";
version = "1.0.12";
src = fetchFromGitHub {
owner = "jthornber";
repo = "thin-provisioning-tools";
rev = "v${version}";
hash = "sha256-wliyTWo3iOonqf4UW50V5co0RQlc75VwLofF9FHV2LI=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"rio-0.9.4" = "sha256-2l5cm7YLZyf2kuRPMytu7Fdewi6x3+9KyyQBv2F8ZDA=";
};
};
passthru.tests = {
inherit (nixosTests.lvm2) lvm-thinpool-linux-latest;
};
meta = with lib; {
homepage = "https://github.com/jthornber/thin-provisioning-tools/";
description = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target";
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ ];
};
}