1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

ocamlPackages.bjack: fix build on darwin

This commit is contained in:
Et7f3 2023-01-03 02:05:58 +01:00
parent 9a5b1e495f
commit d66b3c77e5
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildDunePackage, fetchFromGitHub, dune-configurator, libsamplerate, libjack2 }:
{ lib, stdenv, buildDunePackage, fetchFromGitHub, Accelerate, CoreAudio, dune-configurator, libsamplerate, libjack2 }:
buildDunePackage rec {
pname = "bjack";
@ -13,7 +13,7 @@ buildDunePackage rec {
sha256 = "1gf31a8i9byp6npn0x6gydcickn6sf5dnzmqr2c1b9jn2nl7334c";
};
buildInputs = [ dune-configurator ];
buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ Accelerate CoreAudio ];
propagatedBuildInputs = [ libsamplerate libjack2 ];
meta = with lib; {

View file

@ -86,7 +86,9 @@ let
bitv = callPackage ../development/ocaml-modules/bitv { };
bjack = callPackage ../development/ocaml-modules/bjack { };
bjack = callPackage ../development/ocaml-modules/bjack {
inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate CoreAudio;
};
bls12-381 = callPackage ../development/ocaml-modules/bls12-381 { };
bls12-381-gen = callPackage ../development/ocaml-modules/bls12-381/gen.nix { };