Created
March 13, 2021 22:49
-
-
Save magnetophon/c84242c893cf6fa669f6d302ae4019f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stdenv | |
, alsaLib | |
, curl | |
, fetchFromGitHub | |
, freetype | |
, glib | |
, libGL | |
, libX11 | |
, libXcursor | |
, libXext | |
, libXinerama | |
, libXrandr | |
, libgcc | |
, libglvnd | |
, libjack2 | |
, libsecret | |
, pkg-config | |
}: | |
stdenv.mkDerivation rec { | |
# pname = "vitalium"; | |
# version = "unstable-2021-02-26"; | |
# src = fetchFromGitHub { | |
# owner = "mtytel"; | |
# repo = "vital"; | |
# rev = "65f1fe6c8917de717fe0d30f58b326f1f602ebdd"; | |
# sha256 = "0ij3y974vkkfp1m1imbgzzl3ard36qzd1zy4kchpdc7i067r12d4"; | |
# }; | |
pname = "vitality"; | |
version = "unstable-2021-03-10"; | |
src = fetchFromGitHub { | |
owner = "tank-trax"; | |
repo = "vital"; | |
rev = "78e67b0c67552b7e94e17d36bd0873a2c1bae0f3"; | |
sha256 = "0gdrvf70rybqvb5c4hccc5nj3jc9ld0cw61vj6ry5ic5qb62778h"; | |
}; | |
# pname = "vitalium"; | |
# version = "unstable-2021-02-26"; | |
# src = fetchFromGitHub { | |
# owner = "taylordotfish"; | |
# repo = "vital"; | |
# rev = "3abc91e41eb639c77863e143209f0c3ff8aa2132"; | |
# sha256 = "0jprl6mbr4280lz5jg4bp9ql7ry1i2c2dl2vk9i7fkj2y5922dqp"; | |
# }; | |
nativeBuildInputs = [ pkg-config ]; | |
buildInputs = [ | |
alsaLib | |
curl | |
freetype | |
glib | |
libGL | |
libgcc | |
libglvnd | |
libsecret | |
libjack2 | |
libX11 | |
libXrandr | |
libXinerama | |
libXext | |
libXcursor | |
]; | |
makeFlags = [ "standalone lv2 vst3" ]; | |
# installPhase = '' | |
# make install_standalone install_lv2 install_vst3 | |
# ''; | |
# makeFlags = [ "lv2" ]; | |
# installPhase = '' | |
# make install_lv2 | |
# ''; | |
installPhase = '' | |
make PREFIX=$out install_standalone install_lv2 install_vst3 | |
''; | |
# make PREFIX=$out DESTDIR=$out LIBDIR=$out/lib/ install_lv2 install_standalone | |
# makeFlags = [ "lv2 effects_lv2" ]; | |
# see: https://github.com/mtytel/vital/issues/2 | |
# substituteInPlace plugin/builds/linux_vst/Makefile --replace '"-DREQUIRE_AUTH=1"' '"-DREQUIRE_AUTH=0" "-DNO_AUTH=1"' | |
# substituteInPlace standalone/builds/linux/Makefile --replace '"-DREQUIRE_AUTH=1"' '"-DREQUIRE_AUTH=0" "-DNO_AUTH=1"' | |
preConfigure = '' | |
substituteInPlace Makefile --replace 'Vital.vst3' 'Vial.vst3' | |
''; | |
# installFlags = [ "DESTDIR=$(out)" ]; | |
# see: https://github.com/mtytel/vital/issues/5 | |
# 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