trying to make u-he plugins work
This commit is contained in:
parent
0db7b6f402
commit
9600c7a029
5 changed files with 36 additions and 21 deletions
|
@ -1,13 +1,16 @@
|
|||
{ stdenv, pkgs, fetchurl, lib, autoPatchelfHook, makeWrapper, ... }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "u-he twangstrom";
|
||||
version = "latest";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.u-he.com/releases/Twangstrom_102_16742_Linux.tar.xz";
|
||||
sha256 = "sha256-SFPY+R+gQstDXe+gLaoIuCUckBoYwWZygXSMwytcpnc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
freetype
|
||||
fontconfig
|
||||
|
@ -18,20 +21,32 @@ stdenv.mkDerivation {
|
|||
xorg.libxcb
|
||||
xorg.xcbutilkeysyms
|
||||
xorg.xcbutil
|
||||
gtk3
|
||||
glibc
|
||||
batik
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/vst $out/lib/vst3 $out/lib/clap $out/lib/vst3/Twangstrom.vst3/Contents/Resources/Documentation $out/lib/vst3/Twangstrom.vst3/Contents/x86_64-linux $out/lib/vst3/Twangstrom.vst3/Contents/i686-linux
|
||||
mkdir -p $out/lib/vst3 $out/share $out/lib/vst3/Twangstrom.64.vst3/Contents/Resources/Documentation $out/lib/vst3/Twangstrom.64.vst3/Contents/x86_64-linux
|
||||
|
||||
cp -r Twangstrom/Twangstrom.64.so $out/lib/vst/
|
||||
cp -r Twangstrom/Twangstrom.64.so $out/lib/vst3/Twangstrom.64.vst3/Contents/x86_64-linux/
|
||||
cp -r Twangstrom/*.pdf $out/lib/vst3/Twangstrom.64.vst3/Contents/Resources/Documentation/
|
||||
|
||||
cp -r Twangstrom/Twangstrom.64.so $out/lib/vst3/Twangstrom.vst3/Contents/x86_64-linux/
|
||||
cp -r Twangstrom/*.pdf $out/lib/vst3/Twangstrom.vst3/Contents/Resources/Documentation/
|
||||
'';
|
||||
|
||||
# cp -r Twangstrom $out/share/
|
||||
|
||||
postFixup = ''
|
||||
for file in \
|
||||
$out/lib/vst3/Twangstrom.64.vst3/Contents/x86_64-linux/Twangstrom.64.so
|
||||
do
|
||||
patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $file
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://u-he.com/products/twangstrom/";
|
||||
description = "u-he twangstrom";
|
||||
description = "u-he twangstrom. To complete the installation, manually symlink the data dirs from ~/.nix-profile/share/Twangstrom/ into ~/.u-he/Twangstrom/";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue