summary refs log tree commit diff
path: root/pkgs/development/tools/taplo
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-07-30 10:25:11 +0800
committerfigsoda <figsoda@pm.me>2022-07-30 12:40:01 +0800
commite517b841291e9cb28bf4c0f729a60dc88f75c385 (patch)
treee25847c2b18d6c5335887ad20394c3d1a32cd972 /pkgs/development/tools/taplo
parent2ad1c334f15d319ceb737242cf2b6421e4fe5080 (diff)
taplo: rename from taplo-{cli,lsp}, 0.6.2 -> 0.6.9
Diffstat (limited to 'pkgs/development/tools/taplo')
-rw-r--r--pkgs/development/tools/taplo/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/taplo/default.nix b/pkgs/development/tools/taplo/default.nix
new file mode 100644
index 0000000000000..64437bb325294
--- /dev/null
+++ b/pkgs/development/tools/taplo/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, rustPlatform
+, fetchCrate
+, openssl
+, stdenv
+, Security
+, withLsp ? true
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "taplo";
+  version = "0.6.9";
+
+  src = fetchCrate {
+    inherit version;
+    pname = "taplo-cli";
+    sha256 = "sha256-gf58V/KIsbM+mCT3SvjZ772cuikS2L81eRb7uy8OPys=";
+  };
+
+  cargoSha256 = "sha256-f+jefc3qw4rljmikvrmvZfCCadBKicBs7SMh/mJ4WSs=";
+
+  OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
+  OPENSSL_INCLUDE_DIR = "${openssl.dev}/include";
+
+  buildInputs = lib.optional stdenv.isDarwin Security;
+
+  buildFeatures = lib.optional withLsp "lsp";
+
+  meta = with lib; {
+    description = "A TOML toolkit written in Rust";
+    homepage = "https://taplo.tamasfe.dev";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}