Skip to content

Instantly share code, notes, and snippets.

@magnetophon
Created February 24, 2021 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnetophon/4978a05019b811c0928c9a70f68ef35a to your computer and use it in GitHub Desktop.
Save magnetophon/4978a05019b811c0928c9a70f68ef35a to your computer and use it in GitHub Desktop.
{
stdenv
, alsaLib
, curl
, fetchFromGitHub
, freetype
, glib
, libGL
, libgcc
, libglvnd
, libsecret
, pkg-config
, libjack2
, libX11
, libXrandr
, libXinerama
, libXext
, libXcursor
}:
stdenv.mkDerivation rec {
pname = "vitalium";
version = "unstable-2021-02-17";
src = fetchFromGitHub {
owner = "mtytel";
repo = "vital";
rev = "65f1fe6c8917de717fe0d30f58b326f1f602ebdd";
sha256 = "0ij3y974vkkfp1m1imbgzzl3ard36qzd1zy4kchpdc7i067r12d4";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
alsaLib
curl
freetype
glib
libGL
libgcc
libglvnd
libsecret
libjack2
libX11
libXrandr
libXinerama
libXext
libXcursor
];
makeFlags = [ "standalone vst3 lv2 effects_lv2 effects_vst3" ];
# installPhase = ''
# make install_standalone install_lv2 install_effects_lv2 install_vst3 install_effects_vst3
# '';
# makeFlags = [ "lv2 effects_lv2" ];
preConfigure = ''
substituteInPlace plugin/builds/linux_vst/Makefile --replace "-DREQUIRE_AUTH=1" "-DNO_AUTH=1 -DREQUIRE_AUTH=0"
'';
# installFlags = [ "DESTDIR=$(out)" ];
installPhase = ''
mkdir -p $out/bin
cp -a plugin/builds/standalone/build/* $out/bin/
mkdir -p $out/lib/lv2
cp -a plugin/builds/linux_lv2/*.lv2 $out/lib/lv2
mkdir -p $out/lib/vst3
cp -a plugin/builds/linux_vst/*.vst3 $out/lib/vst3
'';
# installPhase = ''
# make install_lv2
# '';
# installPhase = ''
# mkdir -p $out/lib/vst3
# cp -r stochas_artefacts/Release/VST3/Stochas.vst3 $out/lib/vst3
# '';
meta = with stdenv.lib; {
description = "Spectral warping wavetable synth";
homepage = "https://github.com/mtytel/vital";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.all;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment