Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
121 lines
2.5 KiB
Nix
121 lines
2.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
writableTmpDirAsHomeHook,
|
|
alsa-lib,
|
|
expat,
|
|
fontconfig,
|
|
freetype,
|
|
libX11,
|
|
libXcursor,
|
|
libXext,
|
|
libXinerama,
|
|
libXrandr,
|
|
nix-update-script,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ripplerx";
|
|
version = "1.5.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tiagolr";
|
|
repo = "ripplerx";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lHLAJ8eCmn/WFYxGl/zIq8a2xPKqzpB7tilffJcXhM4=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
writableTmpDirAsHomeHook # fontconfig cache + $HOME/.{lv2,vst3}
|
|
copyDesktopItems
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
expat
|
|
fontconfig
|
|
freetype
|
|
libX11
|
|
libXcursor
|
|
libXext
|
|
libXinerama
|
|
libXrandr
|
|
];
|
|
|
|
# JUCE dlopens these at runtime, standalone executable crashes without them
|
|
NIX_LDFLAGS = [
|
|
"-lX11"
|
|
"-lXext"
|
|
"-lXcursor"
|
|
"-lXinerama"
|
|
"-lXrandr"
|
|
];
|
|
|
|
# Fontconfig error: Cannot load default config file: No such file: (null)
|
|
env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
|
|
|
|
# LTO needs special setup on Linux
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail 'juce::juce_recommended_lto_flags' '# Not forcing LTO'
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin $out/lib/{lv2,vst3}
|
|
|
|
pushd RipplerX_artefacts/Release
|
|
cp -r "Standalone/RipplerX" $out/bin/ripplerx
|
|
cp -r "LV2/RipplerX.lv2" $out/lib/lv2
|
|
cp -r "VST3/RipplerX.vst3" $out/lib/vst3
|
|
popd
|
|
|
|
install -Dm644 ../doc/logo.svg \
|
|
$out/share/icons/hicolor/scalable/apps/ripplerx.svg
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
desktopName = "RipplerX";
|
|
comment = "Physically modeled synth";
|
|
name = "ripplerx";
|
|
exec = "ripplerx";
|
|
icon = "ripplerx";
|
|
terminal = false;
|
|
categories = [
|
|
"Audio"
|
|
"AudioVideo"
|
|
"Midi"
|
|
"Music"
|
|
];
|
|
})
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Physically modeled synth";
|
|
longDescription = ''
|
|
RipplerX is a physically modeled synth, capable of sounds similar to AAS Chromaphone and Ableton Collision.
|
|
'';
|
|
homepage = "https://github.com/tiagolr/ripplerx";
|
|
mainProgram = "ripplerx";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ eljamm ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|