3
0
Fork 0
forked from mirrors/nixpkgs

hybridreverb2: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-11-02 11:01:01 +01:00
parent aeb416bb22
commit 82bb0302ca

View file

@ -1,6 +1,24 @@
{ lib, stdenv, fetchFromGitHub, fetchzip, cmake, pkg-config, lv2, alsa-lib, libjack2,
freetype, libX11, gtk3, pcre, libpthreadstubs, libXdmcp, libxkbcommon,
epoxy, at-spi2-core, dbus, curl, fftwFloat }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, lv2
, alsa-lib
, libjack2
, freetype
, libX11
, gtk3
, pcre
, libpthreadstubs
, libXdmcp
, libxkbcommon
, epoxy
, at-spi2-core
, dbus
, curl
, fftwFloat
}:
let
pname = "HybridReverb2";
@ -10,11 +28,13 @@ let
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
inherit pname version;
impulseDB = fetchzip {
url = "https://github.com/${owner}/${pname}-impulse-response-database/archive/v${DBversion}.zip";
sha256 = "1hlfxbbkahm1k2sk3c3n2mjaz7k80ky3r55xil8nfbvbv0qan89z";
impulseDB = fetchFromGitHub {
inherit owner;
repo = "HybridReverb2-impulse-response-database";
rev = "v${DBversion}";
sha256 = "sha256-PyGrMNhrL2cRjb2UPPwEaJ6vZBV2sDG1mKFCNdfqjsI=";
};
src = fetchFromGitHub {
@ -26,8 +46,23 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ lv2 alsa-lib libjack2 freetype libX11 gtk3 pcre
libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core dbus curl fftwFloat ];
buildInputs = [
lv2
alsa-lib
libjack2
freetype
libX11
gtk3
pcre
libpthreadstubs
libXdmcp
libxkbcommon
epoxy
at-spi2-core
dbus
curl
fftwFloat
];
cmakeFlags = [
"-DHybridReverb2_AdvancedJackStandalone=ON"