48 lines
984 B
Nix
48 lines
984 B
Nix
|
{ 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
|
||
|
sed -i 's+HOME/\.+out/+' install.sh
|
||
|
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 ];
|
||
|
};
|
||
|
}
|