nixpkgs/pkgs/development/tools/toml2json/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

22 lines
578 B
Nix

{ lib, rustPlatform, fetchCrate }:
rustPlatform.buildRustPackage rec {
pname = "toml2json";
version = "1.3.1";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-9q2HtNzsRO0/5gcmxUfWuQlWsfvw/A21WEXZlifCUjY=";
};
cargoHash = "sha256-laOM7LpmsCpLcm4kPRsJiXHoKR58RCuQxVO5Z78beWI=";
meta = with lib; {
description = "A very small CLI for converting TOML to JSON";
mainProgram = "toml2json";
homepage = "https://github.com/woodruffw/toml2json";
license = with licenses; [ mit ];
maintainers = with maintainers; [ rvarago ];
};
}