nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at fix-function-merge 42 lines 790 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4, pkg-config 5, openssl 6, stdenv 7, Security 8, withLsp ? true 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "taplo"; 13 version = "0.9.0"; 14 15 src = fetchCrate { 16 inherit version; 17 pname = "taplo-cli"; 18 hash = "sha256-vvb00a6rppx9kKx+pzObT/hW/IsG6RyYFEDp9M5gvqc="; 19 }; 20 21 cargoHash = "sha256-oT7U9htu7J22MqLZb+YXohlB1CVGxHGQvHJu18PeLf8="; 22 23 nativeBuildInputs = [ 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 openssl 29 ] ++ lib.optionals stdenv.isDarwin [ 30 Security 31 ]; 32 33 buildFeatures = lib.optional withLsp "lsp"; 34 35 meta = with lib; { 36 description = "TOML toolkit written in Rust"; 37 homepage = "https://taplo.tamasfe.dev"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ figsoda ]; 40 mainProgram = "taplo"; 41 }; 42}