mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
rav1e: fix build on darwin
This commit is contained in:
parent
0698166a6f
commit
dbcaf8b33f
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, rustPlatform, fetchurl, fetchFromGitHub, lib, nasm, cargo-c }:
|
{ stdenv, rustPlatform, fetchurl, fetchFromGitHub, lib, nasm, cargo-c, libiconv }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rav1e";
|
pname = "rav1e";
|
||||||
|
@ -28,6 +28,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoSha256 = "1j92prjyr86wyx58h10xq9c9z28ky86h291x65w7qrxpj658aiz1";
|
cargoSha256 = "1j92prjyr86wyx58h10xq9c9z28ky86h291x65w7qrxpj658aiz1";
|
||||||
nativeBuildInputs = [ nasm cargo-c ];
|
nativeBuildInputs = [ nasm cargo-c ];
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cargo cbuild --release --frozen --prefix=${placeholder "out"}
|
cargo cbuild --release --frozen --prefix=${placeholder "out"}
|
||||||
|
|
Loading…
Reference in a new issue