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

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

33 lines
696 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";
version = "0.8.1";
2021-07-29 14:37:41 +00:00
src = fetchCrate {
inherit version;
pname = "taplo-cli";
sha256 = "sha256-evNW6OA7rArj0TvOaQgktcQy0tWnel3ZL+ic78e6lOk=";
2021-07-29 14:37:41 +00:00
};
cargoSha256 = "sha256-jeLjoqEieR96mUZQmQtv7P78lmOaF18ruVhZLi/TieQ=";
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 ];
2023-08-07 15:08:52 +00:00
mainProgram = "taplo";
2021-07-29 14:37:41 +00:00
};
}