added qt4 patching
This commit is contained in:
parent
864edf8846
commit
9a0b486ff8
1 changed files with 28 additions and 2 deletions
11
flake.nix
11
flake.nix
|
|
@ -4,6 +4,7 @@
|
|||
inputs = {
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-qt4.url = "github:NixOS/nixpkgs/nixos-22.11";
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
@ -22,6 +23,9 @@
|
|||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pkgs-qt4 = inputs.nixpkgs-qt4.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
overlayAttrs = {
|
||||
inherit (config.packages) VSTSpeek;
|
||||
|
|
@ -33,9 +37,13 @@
|
|||
url = "https://blog.wavosaur.com/download/linux/VstSpeek3-x64.so.tar.gz";
|
||||
hash = "sha256-xWSprHBU/7zz/KdH8nF6elwQRE29DEO9uDC4qie4n6g=";
|
||||
};
|
||||
nativeBuildInputs = [ pkgs.autoPatchelfHook ];
|
||||
nativeBuildInputs = [
|
||||
pkgs.autoPatchelfHook
|
||||
pkgs.patchelf
|
||||
];
|
||||
buildInputs = with pkgs; [
|
||||
stdenv.cc.cc.lib # libstdc++
|
||||
pkgs-qt4.qt4
|
||||
];
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
|
|
@ -43,6 +51,7 @@
|
|||
installPhase = ''
|
||||
mkdir -p $out/lib/vst
|
||||
tar -xzf $src -C $out/lib/vst/
|
||||
patchelf --add-rpath ${pkgs-qt4.qt4}/lib $out/lib/vst/VstSpeek3.so
|
||||
'';
|
||||
};
|
||||
packages.default = self'.packages.VSTSpeek;
|
||||
|
|
|
|||
Loading…
Reference in a new issue