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

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

43 lines
792 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchCrate
2024-03-05 05:45:54 +00:00
, pkg-config
, openssl
, stdenv
, Security
, withLsp ? true
}:
2021-07-29 14:37:41 +00:00
rustPlatform.buildRustPackage rec {
pname = "taplo";
2024-03-05 05:45:54 +00:00
version = "0.9.0";
2021-07-29 14:37:41 +00:00
src = fetchCrate {
inherit version;
pname = "taplo-cli";
2024-03-05 05:45:54 +00:00
hash = "sha256-vvb00a6rppx9kKx+pzObT/hW/IsG6RyYFEDp9M5gvqc=";
2021-07-29 14:37:41 +00:00
};
2024-03-05 05:45:54 +00:00
cargoHash = "sha256-oT7U9htu7J22MqLZb+YXohlB1CVGxHGQvHJu18PeLf8=";
2021-07-29 14:37:41 +00:00
2024-03-05 05:45:54 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals 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
};
}