Created
February 25, 2021 15:48
-
-
Save magnetophon/26734ca8eefe6a639350aef2c6782059 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 | |
, libgcc | |
, libglvnd | |
, libsecret | |
, pkg-config | |
, libjack2 | |
, libX11 | |
, libXrandr | |
, libXinerama | |
, libXext | |
, libXcursor | |
}: | |
stdenv.mkDerivation rec { | |
pname = "vitalium"; | |
version = "unstable-2021-02-25"; | |
# src = fetchFromGitHub { | |
# owner = "mtytel"; | |
# repo = "vital"; | |
# rev = "65f1fe6c8917de717fe0d30f58b326f1f602ebdd"; | |
# sha256 = "0ij3y974vkkfp1m1imbgzzl3ard36qzd1zy4kchpdc7i067r12d4"; | |
# }; | |
src = fetchFromGitHub { | |
owner = "taylordotfish"; | |
repo = "vital"; | |
rev = "c85a58c91c8f118cbd10a88e17f5ebc8c16caa12"; | |
sha256 = "0fcnyfm7gwa70gjxcd1nscmlp5j2n4brp4pxy6pgh05aphys9s82"; | |
}; | |
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 effects_lv2" ]; | |
# see: https://github.com/mtytel/vital/issues/2 | |
# preConfigure = '' | |
# 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"' | |
# ''; | |
# 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