2021-07-29 15:37:41 +01:00
|
|
|
{ fetchCrate, lib, openssl, pkg-config, rustPlatform, stdenv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "taplo-cli";
|
2021-09-28 21:24:03 +01:00
|
|
|
version = "0.4.1";
|
2021-07-29 15:37:41 +01:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2021-09-28 21:24:03 +01:00
|
|
|
sha256 = "sha256-bGQLAANVahpiiiKKJPNmtr4uT5iKHqyLS5yVm+rSHPg=";
|
2021-07-29 15:37:41 +01:00
|
|
|
};
|
|
|
|
|
2021-09-28 21:24:03 +01:00
|
|
|
cargoSha256 = "sha256-T3fbG5HKOG90kawjQK8D0PIonB6ErNfR3hVIZ5N8zgA=";
|
2021-07-29 15:37:41 +01: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 17:14:46 +01:00
|
|
|
mainProgram = "taplo";
|
2021-07-29 15:37:41 +01:00
|
|
|
};
|
|
|
|
}
|