Merge pull request #110383 from ck3d/fix-rust-bindgen
rust-bindgen: Resolve "/usr/bin/env bash" to fix usage in Nix build
This commit is contained in:
commit
d78f0383c2
@ -1,5 +1,7 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, clang, llvmPackages, rustfmt, writeScriptBin,
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, clang, llvmPackages, rustfmt, writeScriptBin
|
||||||
runtimeShell }:
|
, runtimeShell
|
||||||
|
, bash
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rust-bindgen";
|
pname = "rust-bindgen";
|
||||||
@ -16,7 +18,9 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1dv1ywdy701bnc2jv5jq0hnpal1snlizaj9w6k1wxyrp9szjd48w";
|
cargoSha256 = "1dv1ywdy701bnc2jv5jq0hnpal1snlizaj9w6k1wxyrp9szjd48w";
|
||||||
|
|
||||||
libclang = llvmPackages.libclang.lib; #for substituteAll
|
#for substituteAll
|
||||||
|
libclang = llvmPackages.libclang.lib;
|
||||||
|
inherit bash;
|
||||||
|
|
||||||
buildInputs = [ libclang ];
|
buildInputs = [ libclang ];
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!@bash@/bin/bash
|
||||||
sep='--' # whether to add -- before new options
|
sep='--' # whether to add -- before new options
|
||||||
cxx=0 # whether cxx was explicitly requested
|
cxx=0 # whether cxx was explicitly requested
|
||||||
lastWasx=0 # whether the last argument passed was -x
|
lastWasx=0 # whether the last argument passed was -x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user