depot/third_party/nixpkgs/pkgs/development/tools/taplo/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

35 lines
779 B
Nix

{ lib
, rustPlatform
, fetchCrate
, openssl
, stdenv
, Security
, withLsp ? true
}:
rustPlatform.buildRustPackage rec {
pname = "taplo";
version = "0.6.9";
src = fetchCrate {
inherit version;
pname = "taplo-cli";
sha256 = "sha256-gf58V/KIsbM+mCT3SvjZ772cuikS2L81eRb7uy8OPys=";
};
cargoSha256 = "sha256-f+jefc3qw4rljmikvrmvZfCCadBKicBs7SMh/mJ4WSs=";
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
OPENSSL_INCLUDE_DIR = "${openssl.dev}/include";
buildInputs = lib.optional stdenv.isDarwin Security;
buildFeatures = lib.optional withLsp "lsp";
meta = with lib; {
description = "A TOML toolkit written in Rust";
homepage = "https://taplo.tamasfe.dev";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}