mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
34 lines
902 B
Nix
34 lines
902 B
Nix
{ 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 = "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";
|
|
};
|
|
}
|