Merge pull request #286798 from magnetophon/irlv2

ir.lv2: use new src
This commit is contained in:
Weijia Wang 2024-02-08 08:40:01 +01:00 committed by GitHub
commit 1cbe3ca0c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,26 +1,20 @@
{ lib, stdenv, fetchFromGitHub, fftw, gtk2, lv2, libsamplerate, libsndfile, pkg-config, zita-convolver }:
{ lib, stdenv, fetchgit, fftw, gtk2, lv2, libsamplerate, libsndfile, pkg-config, zita-convolver }:
stdenv.mkDerivation rec {
pname = "ir.lv2";
version = "1.2.4";
version = "0-unstable-2018-06-21";
src = fetchFromGitHub {
owner = "tomszilagyi";
repo = "ir.lv2";
rev = version;
sha256 = "1p6makmgr898fakdxzl4agh48qqwgv1k1kwm8cgq187n0mhiknp6";
src = fetchgit {
url = "https://git.hq.sig7.se/ir.lv2.git";
rev = "38bf3ec7d370d8234dd55be99c14cf9533b43c60";
sha256 = "sha256-5toZYQX2oIAfQ5XPMMN+HGNE4FOE/t6mciih/OpU1dw=";
};
buildInputs = [ fftw gtk2 lv2 libsamplerate libsndfile zita-convolver ];
nativeBuildInputs = [ pkg-config ];
postPatch = ''
# Fix build with lv2 1.18: https://github.com/tomszilagyi/ir.lv2/pull/20
find . -type f -exec fgrep -q LV2UI_Descriptor {} \; \
-exec sed -i {} -e 's/const struct _\?LV2UI_Descriptor/const LV2UI_Descriptor/' \;
'';
env.NIX_CFLAGS_COMPILE = "-fpermissive";
postBuild = "make convert4chan";