Skip to content

Commit dca1bb9

Browse files
Merge pull request #271082 from phlip9/toml-cli
2 parents 864a779 + 55a41d5 commit dca1bb9

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14615,6 +14615,12 @@
1461514615
githubId = 5737016;
1461614616
name = "Philipp Schuster";
1461714617
};
14618+
phlip9 = {
14619+
email = "[email protected]";
14620+
github = "phlip9";
14621+
githubId = 918989;
14622+
name = "Philip Hayes";
14623+
};
1461814624
Phlogistique = {
1461914625
email = "[email protected]";
1462014626
github = "Phlogistique";
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{ lib, fetchCrate, rustPlatform, testers, toml-cli }:
2+
3+
rustPlatform.buildRustPackage rec {
4+
pname = "toml-cli";
5+
version = "0.2.3";
6+
7+
src = fetchCrate {
8+
inherit version;
9+
pname = "toml-cli";
10+
hash = "sha256-V/yMk/Zt3yvEx10nzRhY/7GYnQninGg9h63NSaQChSA=";
11+
};
12+
13+
cargoHash = "sha256-v+GBn9mmiWcWnxmpH6JRPVz1fOSrsjWoY+l+bdzKtT4=";
14+
15+
cargoTestFlags = [
16+
"--bin=toml"
17+
# # The `CARGO_BIN_EXE_toml` build-time env doesn't appear to be resolving
18+
# # correctly with buildRustPackage. Only run the unittests instead.
19+
# "--test=integration"
20+
];
21+
22+
passthru.tests = {
23+
version = testers.testVersion { package = toml-cli; };
24+
};
25+
26+
meta = {
27+
description = "A simple CLI for editing and querying TOML files";
28+
homepage = "https://github.com/gnprice/toml-cli";
29+
license = lib.licenses.mit;
30+
maintainers = with lib.maintainers; [ phlip9 ];
31+
mainProgram = "toml";
32+
};
33+
}

0 commit comments

Comments
 (0)