mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
Merge pull request #217419 from winterqt/jack-fix-src-url
libjack2: fix source url
This commit is contained in:
commit
22bc255715
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user