overlays-personal/pkgs/diva/default.nix

48 lines
963 B
Nix
Raw Normal View History

2023-05-28 10:22:42 +02:00
{ lib
, stdenv
, autoPatchelfHook
, glib
2023-05-28 10:38:23 +02:00
, gtk3
2023-05-28 10:22:42 +02:00
}:
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
2023-05-28 10:38:23 +02:00
gtk3
2023-05-28 10:22:42 +02:00
];
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
'';
#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 ];
};
}