Files
nixpkgs/pkgs/by-name/he/helm/package.nix
Gerhard Schwanzer 47296edcc5 helm: fix i686-linux build
Replace a glibc-internal __sigemptyset call in the bundled FLAC code with the public sigemptyset function.

Closes #534469

Assisted-by: pi coding agent / Mika (OpenAI GPT-5.5)
2026-06-23 09:54:40 +02:00

107 lines
2.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
libxrender,
libxrandr,
libxinerama,
libxext,
libxcursor,
libxcomposite,
libx11,
freetype,
alsa-lib,
curl,
libjack2,
lv2,
pkg-config,
libGLU,
libGL,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "helm";
version = "0.9.0";
src = fetchFromGitHub {
owner = "mtytel";
repo = "helm";
tag = "v${finalAttrs.version}";
hash = "sha256-pI1umrJGMRBB3ifiWrInG7/Rwn+8j9f8iKkzC/cW2p8=";
};
buildInputs = [
libx11
libxcomposite
libxcursor
libxext
libxinerama
libxrender
libxrandr
freetype
alsa-lib
curl
libjack2
libGLU
libGL
lv2
];
nativeBuildInputs = [ pkg-config ];
env.CXXFLAGS = toString [
"-DHAVE_LROUND"
"-fpermissive"
];
enableParallelBuilding = true;
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
patches = [
# gcc9 compatibility https://github.com/mtytel/helm/pull/233
(fetchpatch {
url = "https://github.com/mtytel/helm/commit/cb611a80bd5a36d31bfc31212ebbf79aa86c6f08.patch";
hash = "sha256-s0eiE5RziZGdInSUOYWR7duvQnFmqf8HO+E7lnVCQsQ=";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace-fail "usr/" ""
substituteInPlace src/common/load_save.cpp \
--replace-fail "/usr/share/" "$out/share/"
substituteInPlace JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/cpu.c \
--replace-fail "__sigemptyset(&sigill_sse.sa_mask);" "sigemptyset(&sigill_sse.sa_mask);"
'';
meta = {
homepage = "https://tytel.org/helm";
description = "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
'';
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
magnetophon
bot-wxt1221
];
platforms = lib.platforms.linux;
mainProgram = "helm";
};
})