git.iko.soy/typeable/nixpkgs
on master help sign in
jconvolver: init at 1.1.0 (#143520)
commit0390fcfd059dd76e2fe2939892888e121c21e65a authorOrivej Desh <orivej@gmx.fr> dateSat 6 Nov 2021, 18:17 (5 years ago) parenteb57360
2 files changed+116
pkgs/applications/audio/jconvolver/default.nix+114 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/jconvolver/default.nixnew file+114
@@ -0,0 +1,114 @@
1+{ lib, stdenv, fetchurl, flac, unzip, fftwFloat, hybridreverb2, libclthreads, libjack2, libsndfile, zita-convolver }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "jconvolver";
5+ version = "1.1.0";
6+
7+ src = fetchurl {
8+ url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
9+ sha256 = "03fq1rk5wyn32w0aaa9vqijnw9x9i0i7sv4nhsf949bk5lvi2nmc";
10+ };
11+
12+ reverbs = fetchurl {
13+ url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/jconvolver-reverbs.tar.bz2";
14+ sha256 = "127aj211xfqp37c94d9cn0mmwzbjkj3f6br5gr67ckqirvsdkndi";
15+ };
16+ weird = fetchurl {
17+ url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/weird.wav";
18+ sha256 = "14xchdikx5k8zlgwglrqi168vki3n3rwhn73dkbj5qwh2ndrlyrc";
19+ };
20+
21+ porihall-sf = fetchurl {
22+ url = "http://legacy.spa.aalto.fi/projects/poririrs/wavs/sndfld.zip";
23+ sha256 = "0z1kmdin3vcy6wmnym9jlfh8hwvci9404hff02cb98iw2slxid42";
24+ };
25+ porihall-bd = fetchurl {
26+ url = "http://legacy.spa.aalto.fi/projects/poririrs/wavs/bin_dfeq.zip";
27+ sha256 = "03m2brfxs851sag4z7kd71h6anv6hj34zcambwib0v1byg8vyplp";
28+ };
29+ porihall-c = fetchurl {
30+ url = "http://legacy.spa.aalto.fi/projects/poririrs/wavs/cardioid.zip";
31+ sha256 = "0ilbfvb2kvg5z6zi0mf2k4n0vgpir3iz5fa53xw92c07fs0cx36w";
32+ };
33+
34+ spacenet-hm2 = fetchurl {
35+ url = "https://webfiles.york.ac.uk/OPENAIR/IRs/hamilton-mausoleum/b-format/hm2_000_bformat_48k.wav";
36+ sha256 = "1icnzfzq3mccbmnvmvh22mw8g8dci4i9h7lgrpmycj58v3gnb1p5";
37+ };
38+ spacenet-lyd3 = fetchurl {
39+ url = "https://webfiles.york.ac.uk/OPENAIR/IRs/st-andrews-church/b-format/lyd3_000_bformat_48k.wav";
40+ sha256 = "144cc0i91q5i72lwbxydx3nvxrd12j7clxjhwa2b8sf69ypz58wd";
41+ };
42+ spacenet-mh3 = fetchurl {
43+ url = "https://webfiles.york.ac.uk/OPENAIR/IRs/maes-howe/b-format/mh3_000_bformat_48k.wav";
44+ sha256 = "1c6v9jlm88l1sx2383yivycdrs9jqfsfx8cpbkjg19v2x1dfns0b";
45+ };
46+ spacenet-minster1 = fetchurl {
47+ url = "https://webfiles.york.ac.uk/OPENAIR/IRs/york-minster/b-format/minster1_bformat_48k.wav";
48+ sha256 = "1cs26pawjkv6qvwhfirfvzh21xvnmx8yh7f4xcr79cxv5c6hhnrw";
49+ };
50+
51+ nativeBuildInputs = [ flac unzip ];
52+
53+ buildInputs = [
54+ fftwFloat
55+ hybridreverb2
56+ libclthreads
57+ libjack2
58+ libsndfile
59+ zita-convolver
60+ ];
61+
62+ outputs = [ "bin" "out" "doc" ];
63+
64+ preConfigure = ''
65+ cd source
66+ '';
67+
68+ makeFlags = [
69+ "PREFIX=$(bin)"
70+ ];
71+
72+ postInstall = ''
73+ mkdir -p $doc/share/doc/jconvolver
74+ cp -r ../[A-Z]* $doc/share/doc/jconvolver/
75+
76+ mkdir -p $out/share/jconvolver
77+ cp -r ../config-files $out/share/jconvolver/
78+ cd $out/share/jconvolver
79+ for conf in */*.conf */*/*.conf; do
80+ if grep -q /audio/ $conf; then
81+ substituteInPlace $conf --replace /audio/ $out/share/jconvolver/
82+ fi
83+ done
84+ substituteInPlace config-files/xtalk-cancel/EYCv2-44.conf --replace /cd "#/cd"
85+ ln -s ${weird} config-files/weird.wav
86+
87+ tar xf ${reverbs}
88+ cd reverbs
89+ unzip -d porihall ${porihall-sf} s1_r4_sf.wav
90+ unzip -d porihall ${porihall-bd} s1_r3_bd.wav
91+ unzip -d porihall ${porihall-c} s1_r3_c.wav
92+
93+ mkdir spacenet
94+ ln -s ${spacenet-hm2} spacenet/HM2_000_WXYZ_48k.amb
95+ ln -s ${spacenet-lyd3} spacenet/Lyd3_000_WXYZ_48k.amb
96+ ln -s ${spacenet-mh3} spacenet/MH3_000_WXYZ_48k.amb
97+ ln -s ${spacenet-minster1} spacenet/Minster1_000_WXYZ_48k.amb
98+
99+ mkdir -p hybridreverb-database/large_concert_hall/music/8m
100+ for flac in ${hybridreverb2}/share/HybridReverb2/RIR_Database/large_concert_hall/music/8m/*.flac; do
101+ flac --output-prefix=hybridreverb-database/large_concert_hall/music/8m/ -d $flac
102+ done
103+ '';
104+
105+ enableParallelBuilding = true;
106+
107+ meta = with lib; {
108+ description = "A JACK client and audio file convolver with reverb samples";
109+ homepage = "https://kokkinizita.linuxaudio.org/linuxaudio/";
110+ license = licenses.gpl2Plus;
111+ maintainers = with maintainers; [ orivej ];
112+ platforms = platforms.linux;
113+ };
114+}
pkgs/top-level/all-packages.nix+2
@@ -25930,6 +25930,8 @@ with pkgs;
2593025930
2593125931 dupd = callPackage ../tools/misc/dupd { };
2593225932
25933+ jconvolver = callPackage ../applications/audio/jconvolver { };
25934+
2593325935 jdupes = callPackage ../tools/misc/jdupes { };
2593425936
2593525937 jed = callPackage ../applications/editors/jed { };