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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
734 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";
2022-05-06 23:44:42 +00:00
version = "0.6.2";
2021-07-29 14:37:41 +00:00
src = fetchCrate {
inherit pname version;
2022-05-06 23:44:42 +00:00
sha256 = "sha256-vz3ClC2PI0ti+cItuVdJgP8KLmR2C+uGUzl3DfVuTrY=";
2021-07-29 14:37:41 +00:00
};
2022-05-06 23:44:42 +00:00
cargoSha256 = "sha256-m6wsca/muGPs58myQH7ZLPPM+eGP+GL2sC5suu+vWU0=";
2021-07-29 14:37:41 +00:00
2022-05-06 23:44:42 +00:00
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
OPENSSL_INCLUDE_DIR = "${openssl.dev}/include";
2021-07-29 14:37:41 +00:00
2022-05-06 23:44:42 +00:00
buildInputs = lib.optional stdenv.isDarwin Security;
2021-07-29 14:37:41 +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-18 16:14:46 +00:00
mainProgram = "taplo";
2021-07-29 14:37:41 +00:00
};
}