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

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

32 lines
669 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchCrate
, stdenv
, Security
, withLsp ? true
}:
2021-07-29 14:37:41 +00:00
rustPlatform.buildRustPackage rec {
pname = "taplo";
2022-10-31 18:39:43 +00:00
version = "0.8.0";
2021-07-29 14:37:41 +00:00
src = fetchCrate {
inherit version;
pname = "taplo-cli";
2022-10-31 18:39:43 +00:00
sha256 = "sha256-od8uL2xvIGFtftob3P0VQ+SPkwQgU68OxS6hk34c4+U=";
2021-07-29 14:37:41 +00:00
};
2022-10-31 18:39:43 +00:00
cargoSha256 = "sha256-1ba0FqegYNbRis7Nwl2RONHOxq0iuLah8a1QlWs4HfE=";
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
buildFeatures = lib.optional withLsp "lsp";
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 ];
};
}