Merge pull request #217419 from winterqt/jack-fix-src-url

libjack2: fix source url
This commit is contained in:
Robert Hensing 2023-02-21 16:44:12 +01:00 committed by GitHub
commit 22bc255715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,6 @@
, testers
}:
with lib;
let
inherit (python3Packages) python dbus-python;
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
@ -34,14 +33,14 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "jackaudio";
repo = "jack2";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "01s8i64qczxqawgrzrw19asaqmcspf5l2h3203xzg56wnnhhzcw7";
};
nativeBuildInputs = [ pkg-config python makeWrapper wafHook ];
buildInputs = [ libsamplerate libsndfile readline eigen celt
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
] ++ optionals stdenv.isDarwin [
] ++ lib.optionals stdenv.isDarwin [
aften AudioUnit CoreAudio Accelerate libobjc
];
@ -54,9 +53,9 @@ stdenv.mkDerivation (finalAttrs: {
wafConfigureFlags = [
"--classic"
"--autostart=${if (optDbus != null) then "dbus" else "classic"}"
] ++ optional (optDbus != null) "--dbus"
++ optional (optLibffado != null) "--firewire"
++ optional (optAlsaLib != null) "--alsa";
] ++ lib.optional (optDbus != null) "--dbus"
++ lib.optional (optLibffado != null) "--firewire"
++ lib.optional (optAlsaLib != null) "--alsa";
postInstall = (if libOnly then ''
rm -rf $out/{bin,share}
@ -67,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
meta = with lib; {
description = "JACK audio connection kit, version 2 with jackdbus";
homepage = "https://jackaudio.org";
license = licenses.gpl2Plus;