2023-05-28 10:22:42 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoPatchelfHook
|
|
|
|
, glib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "diva";
|
|
|
|
version = "1.4.5";
|
|
|
|
|
|
|
|
src = fetchTarball {
|
|
|
|
url = "https://dl.u-he.com/releases/Diva_145_12092_Linux.tar.xz";
|
|
|
|
sha256 = "0wfwx3z80xbshl0d280d48fk1b0li992s5fv7rmlpd05gmfs6c84";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs --build .
|
|
|
|
# Set dest dirs with sed, as all are not configurable
|
2023-05-28 10:29:41 +02:00
|
|
|
sed -i 's+HOME/\.+out/lib/+' install.sh
|
2023-05-28 10:22:42 +02:00
|
|
|
sed -i 's+DIALOG=$PRODUCT/dialog+DIALOG=echo+' install.sh
|
|
|
|
# Remove cruft
|
|
|
|
rm Diva/dialog.64
|
|
|
|
'';
|
|
|
|
|
|
|
|
#buildPhase = ''
|
|
|
|
#'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./install.sh --quiet --with-clap --without-32
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Dinosaur Impersonating Virtual Analogue synthesizer";
|
|
|
|
homepage = "https://u-he.com/products/diva/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ jpotier ];
|
|
|
|
};
|
|
|
|
}
|