mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
jack-example-tools: add darwin support
This commit is contained in:
parent
21002df80e
commit
db76ee42c2
@ -15,6 +15,8 @@
|
|||||||
, readline
|
, readline
|
||||||
, zita-alsa-pcmi
|
, zita-alsa-pcmi
|
||||||
, zita-resampler
|
, zita-resampler
|
||||||
|
|
||||||
|
, enableAlsa ? stdenv.isLinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (final: {
|
stdenv.mkDerivation (final: {
|
||||||
@ -28,21 +30,27 @@ stdenv.mkDerivation (final: {
|
|||||||
hash = "sha256-5jmynNxwNVLxEZ1MaqQUG6kRwipDkjhrdDCbZHtmAHk=";
|
hash = "sha256-5jmynNxwNVLxEZ1MaqQUG6kRwipDkjhrdDCbZHtmAHk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs scripts
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config meson ninja ];
|
nativeBuildInputs = [ pkg-config meson ninja ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
jack
|
jack
|
||||||
alsa-lib
|
|
||||||
libopus
|
libopus
|
||||||
libsamplerate
|
libsamplerate
|
||||||
libsndfile
|
libsndfile
|
||||||
readline
|
readline
|
||||||
|
] ++ lib.optionals enableAlsa [
|
||||||
|
alsa-lib
|
||||||
zita-alsa-pcmi
|
zita-alsa-pcmi
|
||||||
zita-resampler
|
zita-resampler
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
mesonFlags = [
|
||||||
patchShebangs scripts
|
(lib.mesonEnable "alsa_in_out" enableAlsa)
|
||||||
'';
|
(lib.mesonEnable "zalsa" enableAlsa)
|
||||||
|
];
|
||||||
|
|
||||||
# no tests defined, but prepare for some in the future.
|
# no tests defined, but prepare for some in the future.
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
@ -52,7 +60,6 @@ stdenv.mkDerivation (final: {
|
|||||||
homepage = "https://jackaudio.org";
|
homepage = "https://jackaudio.org";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
maintainers = with maintainers; [ pennae ];
|
maintainers = with maintainers; [ pennae ];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user