nixos-config/packages/chair-audio/snare.nix

49 lines
1 KiB
Nix
Raw Permalink Normal View History

2024-11-11 11:29:25 -05:00
{ stdenv, pkgs, fetchurl, lib, unzip, autoPatchelfHook, makeWrapper, ... }:
stdenv.mkDerivation rec {
pname = "Excite Snare Pro";
version = "latest";
2025-02-04 13:13:24 -05:00
src = ../../assets/binary-installers/excite_snare_drum_PRO_1.1.10.zip;
2024-11-11 11:29:25 -05:00
nativeBuildInputs = [ makeWrapper unzip autoPatchelfHook ];
buildInputs = with pkgs; [
freetype
fontconfig
alsa-lib
pipewire
curl
stdenv.cc.cc.lib
xorg.libICE
xorg.libSM
xorg.libX11
xorg.libXext
xorg.libXcursor
xorg.libxkbfile
zulip.out
xcb-util-cursor
libxkbcommon
];
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out/lib/vst3
cp -r excite_snare_drum_PRO.vst3 $out/lib/vst3/
'';
postFixup = ''
for file in \
$out/lib/vst3/excite_snare_drum_PRO.vst3/Contents/x86_64-linux/excite_snare_drum_PRO.so
do
patchelf --set-rpath "${lib.makeLibraryPath buildInputs}" $file
done
'';
meta = with lib; {
homepage = "https://www.chair.audio/";
description = "Excite Snare Pro";
platforms = platforms.linux;
};
}