overlays-personal/pkgs/diva/default.nix
2023-05-28 11:38:23 +03:00

47 lines
963 B
Nix

{ lib
, stdenv
, autoPatchelfHook
, glib
, gtk3
}:
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
gtk3
];
patchPhase = ''
patchShebangs --build .
# Set dest dirs with sed, as all are not configurable
sed -i 's+HOME/\.+out/lib/+' install.sh
sed -i 's+DIALOG=$PRODUCT/dialog+DIALOG=echo+' install.sh
'';
#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 ];
};
}