trying to make u-he package
This commit is contained in:
parent
204a1d6b8f
commit
0db7b6f402
4 changed files with 46 additions and 7 deletions
12
flake.lock
generated
12
flake.lock
generated
|
@ -174,11 +174,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1732350895,
|
||||
"narHash": "sha256-GcOQbOgmwlsRhpLGSwZJwLbo3pu9ochMETuRSS1xpz4=",
|
||||
"lastModified": 1732824227,
|
||||
"narHash": "sha256-fYNXgpu1AEeLyd3fQt4Ym0tcVP7cdJ8wRoqJ+CtTRyY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0c582677378f2d9ffcb01490af2f2c678dcb29d3",
|
||||
"rev": "c71ad5c34d51dcbda4c15f44ea4e4aa6bb6ac1e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -190,11 +190,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1732350895,
|
||||
"narHash": "sha256-GcOQbOgmwlsRhpLGSwZJwLbo3pu9ochMETuRSS1xpz4=",
|
||||
"lastModified": 1732824227,
|
||||
"narHash": "sha256-fYNXgpu1AEeLyd3fQt4Ym0tcVP7cdJ8wRoqJ+CtTRyY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0c582677378f2d9ffcb01490af2f2c678dcb29d3",
|
||||
"rev": "c71ad5c34d51dcbda4c15f44ea4e4aa6bb6ac1e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -201,6 +201,7 @@
|
|||
planify
|
||||
borgbackup
|
||||
stirling-pdf
|
||||
trash-cli
|
||||
|
||||
wineWowPackages.stagingFull
|
||||
wineWowPackages.fonts
|
||||
|
@ -288,6 +289,7 @@
|
|||
(callPackage ../packages/amplocker/package.nix {})
|
||||
(callPackage ../packages/chair-audio/snare.nix {})
|
||||
(callPackage ../packages/chair-audio/cymb.nix {})
|
||||
(callPackage ../packages/u-he/twangstrom.nix {})
|
||||
|
||||
# Fonts
|
||||
fira-code
|
||||
|
|
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
|||
version = "latest";
|
||||
src = fetchurl {
|
||||
url = "https://audioassaultdownloads.s3.amazonaws.com/AmpLocker/AmpLocker109/AmpLockerLinux.zip";
|
||||
sha256 = "sha256-aZPDjhCk6xbTHGeZi+WbSVz0qphCIeeqFH5hE6it7z4=";
|
||||
sha256 = "sha256-H36j6w4BrFe+0hStVNGs4FoHnIlQE+D++osq+trHYh0=";
|
||||
};
|
||||
nativeBuildInputs = [ makeWrapper unzip autoPatchelfHook ];
|
||||
buildInputs = with pkgs; [
|
||||
|
|
37
packages/u-he/twangstrom.nix
Normal file
37
packages/u-he/twangstrom.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ stdenv, pkgs, fetchurl, lib, autoPatchelfHook, makeWrapper, ... }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
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
|
||||
alsa-lib
|
||||
pipewire
|
||||
stdenv.cc.cc.lib
|
||||
cairo
|
||||
xorg.libxcb
|
||||
xorg.xcbutilkeysyms
|
||||
xorg.xcbutil
|
||||
];
|
||||
|
||||
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
|
||||
|
||||
cp -r Twangstrom/Twangstrom.64.so $out/lib/vst/
|
||||
|
||||
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/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://u-he.com/products/twangstrom/";
|
||||
description = "u-he twangstrom";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue