syndicate-flake/preserves-tools/default.nix

23 lines
718 B
Nix
Raw Normal View History

2021-09-03 11:48:28 +00:00
{ lib, rustPlatform, rust, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "preserves-tool";
# use the name of the actual utility so that
# nix run …#preserves-tools works as expected.
2021-12-05 12:03:09 +00:00
version = "2.3.0";
2021-09-03 11:48:28 +00:00
src = fetchCrate {
pname = "preserves-tools"; # name of the crate
inherit version;
2021-12-05 12:03:09 +00:00
sha256 = "sha256-I9dqY2pej/HRQg2VGkEoWKOlo4c9TYwk/jw23eN1nlU=";
2021-09-03 11:48:28 +00:00
};
2021-12-05 12:03:09 +00:00
cargoHash = "sha256-0UMGDoyfdEJQQDoUadbU6Ev6yA2k0sQHRvO/Z+4QF5g=";
2021-09-03 11:48:28 +00:00
nativeBuildInputs = [ rust ];
meta = {
description = "Swiss army knife for working with Preserves documents";
homepage = "https://preserves.gitlab.io/preserves/doc/preserves-tool.html";
maintainers = with lib.maintainers; [ ehmry ];
};
}