2021-12-06 16:07:01 +00:00
|
|
|
{ lib, rustPlatform, fetchCrate, stdenv, pkg-config, openssl, Security }:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "taplo-cli";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.6.2";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-vz3ClC2PI0ti+cItuVdJgP8KLmR2C+uGUzl3DfVuTrY=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
cargoSha256 = "sha256-m6wsca/muGPs58myQH7ZLPPM+eGP+GL2sC5suu+vWU0=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
|
|
|
|
OPENSSL_INCLUDE_DIR = "${openssl.dev}/include";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A TOML toolkit written in Rust";
|
|
|
|
homepage = "https://taplo.tamasfe.dev";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2021-08-22 07:53:02 +00:00
|
|
|
mainProgram = "taplo";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
}
|