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,5 +1,5 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function nixgc --description 'update home manager'
|
function nixgc --description 'update home manager'
|
||||||
sudo nix-collect-garbage $argv
|
nix-collect-garbage $argv && sudo nix-collect-garbage $argv
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
(when (probe-file quicklisp-init)
|
(when (probe-file quicklisp-init)
|
||||||
(load quicklisp-init)))
|
(load quicklisp-init)))
|
||||||
|
|
||||||
;; (push (pathname "~/quicklisp/") ql:*local-project-directories*)
|
(push (pathname "~/source/_cl") ql:*local-project-directories*)
|
||||||
|
|
||||||
(ql:quickload :cffi :silent t)
|
(ql:quickload :cffi :silent t)
|
||||||
(pushnew (merge-pathnames ".nix-profile/lib/" (user-homedir-pathname))
|
(pushnew (merge-pathnames ".nix-profile/lib/" (user-homedir-pathname))
|
||||||
|
|
24
flake.lock
generated
24
flake.lock
generated
|
@ -28,11 +28,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732466619,
|
"lastModified": 1733050161,
|
||||||
"narHash": "sha256-T1e5oceypZu3Q8vzICjv1X/sGs9XfJRMW5OuXHgpB3c=",
|
"narHash": "sha256-lYnT+EYE47f5yY3KS/Kd4pJ6CO9fhCqumkYYkQ3TK20=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "f3111f62a23451114433888902a55cf0692b408d",
|
"rev": "62d536255879be574ebfe9b87c4ac194febf47c5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -142,11 +142,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732483221,
|
"lastModified": 1733066523,
|
||||||
"narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=",
|
"narHash": "sha256-aQorWITXZu7b095UwnpUvcGt9dNJie/GO9r4hZfe2sU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405",
|
"rev": "fe01780d356d70fd119a19277bff71d3e78dad00",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -174,11 +174,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732824227,
|
"lastModified": 1732981179,
|
||||||
"narHash": "sha256-fYNXgpu1AEeLyd3fQt4Ym0tcVP7cdJ8wRoqJ+CtTRyY=",
|
"narHash": "sha256-F7thesZPvAMSwjRu0K8uFshTk3ZZSNAsXTIFvXBT+34=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c71ad5c34d51dcbda4c15f44ea4e4aa6bb6ac1e9",
|
"rev": "62c435d93bf046a5396f3016472e8f7c8e2aed65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -190,11 +190,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1732824227,
|
"lastModified": 1732981179,
|
||||||
"narHash": "sha256-fYNXgpu1AEeLyd3fQt4Ym0tcVP7cdJ8wRoqJ+CtTRyY=",
|
"narHash": "sha256-F7thesZPvAMSwjRu0K8uFshTk3ZZSNAsXTIFvXBT+34=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c71ad5c34d51dcbda4c15f44ea4e4aa6bb6ac1e9",
|
"rev": "62c435d93bf046a5396f3016472e8f7c8e2aed65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -289,7 +289,7 @@
|
||||||
(callPackage ../packages/amplocker/package.nix {})
|
(callPackage ../packages/amplocker/package.nix {})
|
||||||
(callPackage ../packages/chair-audio/snare.nix {})
|
(callPackage ../packages/chair-audio/snare.nix {})
|
||||||
(callPackage ../packages/chair-audio/cymb.nix {})
|
(callPackage ../packages/chair-audio/cymb.nix {})
|
||||||
(callPackage ../packages/u-he/twangstrom.nix {})
|
# (callPackage ../packages/u-he/twangstrom.nix {})
|
||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
fira-code
|
fira-code
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{ stdenv, pkgs, fetchurl, lib, autoPatchelfHook, makeWrapper, ... }:
|
{ stdenv, pkgs, fetchurl, lib, autoPatchelfHook, makeWrapper, ... }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "u-he twangstrom";
|
pname = "u-he twangstrom";
|
||||||
version = "latest";
|
version = "latest";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://dl.u-he.com/releases/Twangstrom_102_16742_Linux.tar.xz";
|
url = "https://dl.u-he.com/releases/Twangstrom_102_16742_Linux.tar.xz";
|
||||||
sha256 = "sha256-SFPY+R+gQstDXe+gLaoIuCUckBoYwWZygXSMwytcpnc=";
|
sha256 = "sha256-SFPY+R+gQstDXe+gLaoIuCUckBoYwWZygXSMwytcpnc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
freetype
|
freetype
|
||||||
fontconfig
|
fontconfig
|
||||||
|
@ -18,20 +21,32 @@ stdenv.mkDerivation {
|
||||||
xorg.libxcb
|
xorg.libxcb
|
||||||
xorg.xcbutilkeysyms
|
xorg.xcbutilkeysyms
|
||||||
xorg.xcbutil
|
xorg.xcbutil
|
||||||
|
gtk3
|
||||||
|
glibc
|
||||||
|
batik
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
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; {
|
meta = with lib; {
|
||||||
homepage = "https://u-he.com/products/twangstrom/";
|
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;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue