2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-08-25 18:26:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, xorg
|
|
|
|
, freetype
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib
|
2020-08-25 18:26:10 +00:00
|
|
|
, curl
|
|
|
|
, libjack2
|
|
|
|
, lv2
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-08-25 18:26:10 +00:00
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
}:
|
2015-11-17 17:24:39 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-07-11 14:37:06 +00:00
|
|
|
version = "0.9.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "helm";
|
2016-02-25 10:29:03 +00:00
|
|
|
|
2016-11-01 01:28:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mtytel";
|
|
|
|
repo = "helm";
|
2017-07-11 14:37:06 +00:00
|
|
|
rev = "927d2ed27f71a735c3ff2a1226ce3129d1544e7e";
|
|
|
|
sha256 = "17ys2vvhncx9i3ydg3xwgz1d3gqv4yr5mqi7vr0i0ca6nad6x3d4";
|
2016-11-01 01:28:34 +00:00
|
|
|
};
|
2015-11-17 17:24:39 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libX11 xorg.libXcomposite xorg.libXcursor xorg.libXext
|
|
|
|
xorg.libXinerama xorg.libXrender xorg.libXrandr
|
2021-10-01 19:32:12 +00:00
|
|
|
freetype alsa-lib curl libjack2 libGLU libGL lv2
|
2015-11-17 17:24:39 +00:00
|
|
|
];
|
2021-10-01 19:32:12 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2015-11-17 17:24:39 +00:00
|
|
|
|
2016-11-01 01:28:34 +00:00
|
|
|
CXXFLAGS = "-DHAVE_LROUND";
|
2021-10-01 19:32:12 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
2016-11-01 01:28:34 +00:00
|
|
|
|
2020-08-25 18:26:10 +00:00
|
|
|
patches = [
|
|
|
|
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
|
|
|
|
sha256 = "1i2289srcfz17c3zzab6f51aznzdj62kk53l4afr32bkjh9s4ixk";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
2016-11-01 01:28:34 +00:00
|
|
|
sed -i 's|usr/||g' Makefile
|
2021-10-01 19:32:12 +00:00
|
|
|
sed -i "s|/usr/share/|$out/share/|" src/common/load_save.cpp
|
2015-11-17 17:24:39 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tytel.org/helm";
|
2015-11-17 17:24:39 +00:00
|
|
|
description = "A free, cross-platform, polyphonic synthesizer";
|
|
|
|
longDescription = ''
|
|
|
|
A free, cross-platform, polyphonic synthesizer.
|
|
|
|
Features:
|
|
|
|
32 voice polyphony
|
|
|
|
Interactive visual interface
|
|
|
|
Powerful modulation system with live visual feedback
|
|
|
|
Dual oscillators with cross modulation and up to 15 oscillators each
|
|
|
|
Unison and Harmony mode for oscillators
|
|
|
|
Oscillator feedback and saturation for waveshaping
|
|
|
|
12 different waveforms
|
|
|
|
7 filter types with keytracking
|
|
|
|
2 monophonic and 1 polyphonic LFO
|
|
|
|
Step sequencer
|
|
|
|
Lots of modulation sources including polyphonic aftertouch
|
|
|
|
Simple arpeggiator
|
|
|
|
Effects: Formant filter, stutter, delay
|
|
|
|
'';
|
2021-10-01 19:32:12 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2015-11-17 17:24:39 +00:00
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|