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

27 lines
740 B
Nix
Raw Normal View History

2021-12-04 00:14:51 +00:00
{ lib, rustPlatform, fetchCrate, stdenv, pkg-config, openssl, Security }:
2021-07-29 14:37:41 +00:00
rustPlatform.buildRustPackage rec {
pname = "taplo-cli";
2021-12-04 00:14:51 +00:00
version = "0.5.0";
2021-07-29 14:37:41 +00:00
src = fetchCrate {
inherit pname version;
2021-12-04 00:14:51 +00:00
sha256 = "sha256-+0smR1FDeJMSa/LaRM2M53updt5p8717DEaFItNXCdM=";
2021-07-29 14:37:41 +00:00
};
2021-12-04 00:14:51 +00:00
cargoSha256 = "sha256-d7mysGYR72shXwvmDXr0oftSa+RtRoSbP++HBR40Mus=";
2021-07-29 14:37:41 +00: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 16:14:46 +00:00
mainProgram = "taplo";
2021-07-29 14:37:41 +00:00
};
}