nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 913 B view raw
1{ 2 lib, 3 fetchCrate, 4 rustPlatform, 5 testers, 6 toml-cli, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "toml-cli"; 11 version = "0.2.3"; 12 13 src = fetchCrate { 14 inherit version; 15 pname = "toml-cli"; 16 hash = "sha256-V/yMk/Zt3yvEx10nzRhY/7GYnQninGg9h63NSaQChSA="; 17 }; 18 19 cargoHash = "sha256-PoqVMTCRmSTt7UhCpMF3ixmAfVtpkaOfaTTmDNhrpLA="; 20 21 cargoTestFlags = [ 22 "--bin=toml" 23 # # The `CARGO_BIN_EXE_toml` build-time env doesn't appear to be resolving 24 # # correctly with buildRustPackage. Only run the unittests instead. 25 # "--test=integration" 26 ]; 27 28 passthru.tests = { 29 version = testers.testVersion { package = toml-cli; }; 30 }; 31 32 meta = { 33 description = "Simple CLI for editing and querying TOML files"; 34 homepage = "https://github.com/gnprice/toml-cli"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ phlip9 ]; 37 mainProgram = "toml"; 38 }; 39}