nixpkgs-suyu/pkgs/development/tools/taplo-cli/default.nix

27 lines
740 B
Nix
Raw Normal View History

2021-12-04 01:14:51 +01:00
{ lib, rustPlatform, fetchCrate, stdenv, pkg-config, openssl, Security }:
2021-07-29 16:37:41 +02:00
rustPlatform.buildRustPackage rec {
pname = "taplo-cli";
2021-12-04 01:14:51 +01:00
version = "0.5.0";
2021-07-29 16:37:41 +02:00
src = fetchCrate {
inherit pname version;
2021-12-04 01:14:51 +01:00
sha256 = "sha256-+0smR1FDeJMSa/LaRM2M53updt5p8717DEaFItNXCdM=";
2021-07-29 16:37:41 +02:00
};
2021-12-04 01:14:51 +01:00
cargoSha256 = "sha256-d7mysGYR72shXwvmDXr0oftSa+RtRoSbP++HBR40Mus=";
2021-07-29 16:37:41 +02:00
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
buildInputs = lib.optional stdenv.isLinux openssl
++ lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "A TOML toolkit written in Rust";
homepage = "https://taplo.tamasfe.dev";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
2021-08-18 18:14:46 +02:00
mainProgram = "taplo";
2021-07-29 16:37:41 +02:00
};
}