forked from mirrors/nixpkgs
rav1e: use libgit2 from Nixpkgs
This is a native build input because it's used at build time by the "built" crate, which tries to embed git info and build timestamps into the binary (ugh). This fixes cross-compilation from x86_64 to aarch64, because git2's build.rs tries to use -m64, which is x86_64-only.
This commit is contained in:
parent
aad4cd8653
commit
212c28ec39
|
@ -3,8 +3,11 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchCrate
|
, fetchCrate
|
||||||
, nasm
|
, pkg-config
|
||||||
, cargo-c
|
, cargo-c
|
||||||
|
, libgit2
|
||||||
|
, nasm
|
||||||
|
, zlib
|
||||||
, libiconv
|
, libiconv
|
||||||
, Security
|
, Security
|
||||||
}:
|
}:
|
||||||
|
@ -24,7 +27,9 @@ in rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
auditable = true; # TODO: remove when this is the default
|
auditable = true; # TODO: remove when this is the default
|
||||||
|
|
||||||
nativeBuildInputs = [ nasm cargo-c ];
|
depsBuildBuild = [ pkg-config ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cargo-c libgit2 nasm zlib ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
libiconv
|
libiconv
|
||||||
|
|
Loading…
Reference in a new issue