Merge pull request #271082 from phlip9/toml-cli

This commit is contained in:
Sandro 2024-01-24 10:26:36 +01:00 committed by GitHub
commit dca1bb9447
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 39 additions and 0 deletions

View File

@ -14615,6 +14615,12 @@
githubId = 5737016;
name = "Philipp Schuster";
};
phlip9 = {
email = "philiphayes9@gmail.com";
github = "phlip9";
githubId = 918989;
name = "Philip Hayes";
};
Phlogistique = {
email = "noe.rubinstein@gmail.com";
github = "Phlogistique";

View File

@ -0,0 +1,33 @@
{ lib, fetchCrate, rustPlatform, testers, toml-cli }:
rustPlatform.buildRustPackage rec {
pname = "toml-cli";
version = "0.2.3";
src = fetchCrate {
inherit version;
pname = "toml-cli";
hash = "sha256-V/yMk/Zt3yvEx10nzRhY/7GYnQninGg9h63NSaQChSA=";
};
cargoHash = "sha256-v+GBn9mmiWcWnxmpH6JRPVz1fOSrsjWoY+l+bdzKtT4=";
cargoTestFlags = [
"--bin=toml"
# # The `CARGO_BIN_EXE_toml` build-time env doesn't appear to be resolving
# # correctly with buildRustPackage. Only run the unittests instead.
# "--test=integration"
];
passthru.tests = {
version = testers.testVersion { package = toml-cli; };
};
meta = {
description = "A simple CLI for editing and querying TOML files";
homepage = "https://github.com/gnprice/toml-cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ phlip9 ];
mainProgram = "toml";
};
}