From c2684efcc190d586f654e7ae730aab951cae5a6e Mon Sep 17 00:00:00 2001 From: Philip Hayes Date: Wed, 29 Nov 2023 17:17:34 -0800 Subject: [PATCH 1/2] maintainers: add phlip9 --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 8d1584235d84..5c4cd2381bab 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14609,6 +14609,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"; From 55a41d555d84318feef3670cef69227c5c2f238c Mon Sep 17 00:00:00 2001 From: Philip Hayes Date: Wed, 29 Nov 2023 17:20:47 -0800 Subject: [PATCH 2/2] toml-cli: init at 0.2.3 --- pkgs/by-name/to/toml-cli/package.nix | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/to/toml-cli/package.nix diff --git a/pkgs/by-name/to/toml-cli/package.nix b/pkgs/by-name/to/toml-cli/package.nix new file mode 100644 index 000000000000..42c9ca639337 --- /dev/null +++ b/pkgs/by-name/to/toml-cli/package.nix @@ -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"; + }; +}