Merge pull request #242616 from PowerUser64/vital

vital: init at 1.5.5
This commit is contained in:
Pol Dellaiera 2023-07-10 21:17:59 +02:00 committed by GitHub
commit 8989fa4579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,67 @@
{ lib
, stdenv
, fetchzip
, autoPatchelfHook
, makeBinaryWrapper
, alsa-lib
, libjack2
, curl
, xorg
, libGL
, freetype
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vital";
version = "1.5.5";
src = fetchzip {
url = "https://builds.vital.audio/VitalAudio/vital/${builtins.replaceStrings ["."] ["_"] finalAttrs.version}/VitalInstaller.zip";
hash = "sha256-hCwXSUiBB0YpQ1oN6adLprwAoel6f72tBG5fEb61OCI=";
};
nativeBuildInputs = [
autoPatchelfHook
makeBinaryWrapper
];
buildInputs = [
alsa-lib
stdenv.cc.cc.lib
libGL
xorg.libSM
xorg.libICE
xorg.libX11
freetype
libjack2
];
dontBuild = true;
installPhase = ''
runHook preInstall
# copy each output to its destination (individually)
mkdir -p $out/{bin,lib/{clap,vst,vst3}}
for f in bin/Vital lib/{clap/Vital.clap,vst/Vital.so,vst3/Vital.vst3}; do
cp -r $f $out/$f
done
wrapProgram $out/bin/Vital \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ curl libjack2 ]}"
runHook postInstall
'';
meta = with lib; {
description = "Spectral warping wavetable synth";
homepage = "https://vital.audio/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = with licenses; [ unfree gpl3Plus ];
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ PowerUser64 ];
mainProgram = "Vital";
};
})

View file

@ -33875,6 +33875,8 @@ with pkgs;
vieb = callPackage ../applications/networking/browsers/vieb { };
vital = callPackage ../applications/audio/vital { };
vivaldi = callPackage ../applications/networking/browsers/vivaldi { };
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix { };