From 0ff027e0aebfc60db4a984dc7f2d2e760906d74d Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 30 Nov 2024 08:39:09 -0500 Subject: [PATCH] nufmt: use rustPlatform.bindgenHook --- pkgs/by-name/nu/nufmt/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/nu/nufmt/package.nix b/pkgs/by-name/nu/nufmt/package.nix index d13f2834c674..8c956cb82080 100644 --- a/pkgs/by-name/nu/nufmt/package.nix +++ b/pkgs/by-name/nu/nufmt/package.nix @@ -4,10 +4,9 @@ fetchFromGitHub, rustPlatform, apple-sdk_11, - llvmPackages, nix-update-script, - ... }: + rustPlatform.buildRustPackage { pname = "nufmt"; version = "0-unstable-2024-11-21"; @@ -19,12 +18,14 @@ rustPlatform.buildRustPackage { hash = "sha256-ideILLOawU6BNawmr4lqt2LGkf29wvlwQe9gqgdYRiI="; }; + nativeBuildInputs = [ + rustPlatform.bindgenHook + ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ]; - env.LIBCLANG_PATH = lib.optionalString stdenv.cc.isClang "${lib.getLib llvmPackages.libclang}/lib"; - cargoHash = "sha256-MHZlXmHAYIiaB6Isutqjrh45jppRzTZRSE3VqzpFBBA="; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };