muso: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-17 22:30:35 +02:00 committed by Jonathan Ringer
parent 23d1505f89
commit 69ce7c4987
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
{ lib, fetchFromGitHub, rustPlatform
, pkg-config, wrapGAppsHook
{ lib, stdenv, fetchFromGitHub, rustPlatform
, pkg-config, wrapGAppsHook, CoreServices
}:
rustPlatform.buildRustPackage rec {
@ -14,6 +14,7 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
buildInputs = lib.optional stdenv.isDarwin CoreServices;
preConfigure = ''
substituteInPlace lib/utils.rs \

View file

@ -25271,7 +25271,9 @@ in
mupdf = callPackage ../applications/misc/mupdf { };
mupdf_1_17 = callPackage ../applications/misc/mupdf/1.17.nix { };
muso = callPackage ../applications/audio/muso { };
muso = callPackage ../applications/audio/muso {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
mystem = callPackage ../applications/misc/mystem { };