1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{ alsa-lib, at-spi2-core, cmake, curl, dbus, libepoxy, fetchFromGitHub, freeglut
, freetype, gcc-unwrapped, gtk3, lib, libGL, libXcursor, libXdmcp, libXext
, libXinerama, libXrandr, libXtst, libdatrie, libjack2, libpsl, libselinux
, libsepol, libsysprof-capture, libthai, libxkbcommon, pcre, pkg-config
, python3, sqlite, stdenv }:
stdenv.mkDerivation (finalAttrs: {
pname = "chow-phaser";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jatinchowdhury18";
repo = "ChowPhaser";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
sha256 = "sha256-9wo7ZFMruG3QNvlpILSvrFh/Sx6J1qnlWc8+aQyS4tQ=";
};
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [
alsa-lib
at-spi2-core
curl
dbus
libepoxy
freeglut
freetype
gtk3
libGL
libXcursor
libXdmcp
libXext
libXinerama
libXrandr
libXtst
libdatrie
libjack2
libpsl
libselinux
libsepol
libsysprof-capture
libthai
libxkbcommon
pcre
python3
sqlite
gcc-unwrapped
];
cmakeFlags = [
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
];
installPhase = ''
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/ChowPhaser/
cd ChowPhaserMono_artefacts/Release
cp libChowPhaserMono_SharedCode.a $out/lib
cp -r VST3/ChowPhaserMono.vst3 $out/lib/vst3
cp Standalone/ChowPhaserMono $out/bin
cd ../../ChowPhaserStereo_artefacts/Release
cp libChowPhaserStereo_SharedCode.a $out/lib
cp -r VST3/ChowPhaserStereo.vst3 $out/lib/vst3
cp Standalone/ChowPhaserStereo $out/bin
'';
meta = with lib; {
homepage = "https://github.com/jatinchowdhury18/ChowPhaser";
description = "Phaser effect based loosely on the Schulte Compact Phasing 'A'";
license = with licenses; [ bsd3 ];
mainProgram = "ChowPhaserStereo";
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.linux;
};
})
|