Sender | Message | Time |
---|---|---|
26 Dec 2023 | ||
* the vst is vcv-rack (paid version), so I tried to override the vcv-rack derivation and used autoPatchelfHook ` pkgs.vcv-rack.overrideAttrs (old: { # ... src = pkgs.requireFile { message = "run \"nix store add-file RackPro-2.4.1-lin-x64.zip\""; name = "RackPro-2.4.1-lin-x64.zip"; # sha256 obtained with: nix-hash --flat --type sha256 RackPro-2.4.1-lin-x64.zip sha256 = "564a9f5f7f07c87b2a83236e4a5686d5b2ee8062318e9b77fdd533f1494e1a12"; }; nativeBuildInputs = with pkgs; [ copyDesktopItems makeWrapper wrapGAppsHook autoPatchelfHook unzip ]; unpackPhase = '' unzip $src ''; # ... installPhase = '' runHook preInstall # copy vst/clap plugins to $out/lib # copy vcv rack mkdir -p $out/bin cd Rack2Pro cp Rack $out/bin cp libRack.so $out/lib # ... ''; postFixup = '' for file in \ "$out/lib/clap/VCV Rack 2.clap" \ "$out/lib/vst/VCV Rack 2.so" \ "$out/lib/vst/VCV Rack 2.vst3/Contents/x86_64-linux/VCV Rack 2.so" do patchelf --set-rpath "${lib.makeLibraryPath old.buildInputs}" "$file" done '' + old.postFixup; meta.description = "Open-source virtual modular synthesizer - paid version"; }) ` | 18:35:36 | |
the vst is vcv-rack (paid version), so I tried to override the vcv-rack derivation and used autoPatchelfHook` pkgs.vcv-rack.overrideAttrs (old: { # ... src = pkgs.requireFile { message = "run \"nix store add-file RackPro-2.4.1-lin-x64.zip\""; name = "RackPro-2.4.1-lin-x64.zip"; # sha256 obtained with: nix-hash --flat --type sha256 RackPro-2.4.1-lin-x64.zip sha256 = "564a9f5f7f07c87b2a83236e4a5686d5b2ee8062318e9b77fdd533f1494e1a12"; }; nativeBuildInputs = with pkgs; [ copyDesktopItems makeWrapper wrapGAppsHook autoPatchelfHook unzip ]; unpackPhase = '' unzip $src ''; # ... installPhase = '' runHook preInstall # copy vst/clap plugins to $out/lib # copy vcv rack mkdir -p $out/bin cd Rack2Pro cp Rack $out/bin cp libRack.so $out/lib # ... ''; postFixup = '' for file in \ "$out/lib/clap/VCV Rack 2.clap" \ "$out/lib/vst/VCV Rack 2.so" \ "$out/lib/vst/VCV Rack 2.vst3/Contents/x86_64-linux/VCV Rack 2.so" do patchelf --set-rpath "${lib.makeLibraryPath old.buildInputs}" "$file" done '' + old.postFixup; meta.description = "Open-source virtual modular synthesizer - paid version"; }) ` | 18:38:44 | |
I use pipewire btw. Not sure if I did the patchelf part right (in postFixup) | 18:41:06 | |
so yeah if anybody faced the same problem and has an idea of how to fix it, that would be great :) | 18:45:24 | |
the vst is vcv-rack (paid version), so I tried to override the vcv-rack derivation and used autoPatchelfHookpkgs.vcv-rack.overrideAttrs (old: { | 18:49:42 |