nixos-config/nixos/pkgs/bitwig-studio/bitwig-studio-environment.nix
2021-11-01 09:20:42 +01:00

96 lines
1.6 KiB
Nix

# NixOs fhs-user script
# ---------------------
#
# this is a script to start Bitwig Studio.
# it is necessary because without it my VSTs won't run.
# function header
# ---------------
{ pkgs ? import <nixpkgs> { } }:
let
# function call
# -------------
in
(pkgs.buildFHSUserEnv {
# name of the programm
# --------------------
name = "bitwig";
# targetSystem packages
# ---------------------
# these are packages which are compiled for the target
# system architecture
targetPkgs = pkgs:
with pkgs; [
bitwig-studio3
liblo
zlib
fftw
minixml
libcxx
alsaLib
glibc
gtk2-x11
atk
mesa_glu
glib
pango
gdk_pixbuf
cairo
freetype
fontconfig
dbus
xorg.libX11
xorg.libxcb
xorg.libXext
xorg.libXinerama
xlibs.libXi
xlibs.libXcursor
xlibs.libXdamage
xlibs.libXcomposite
xlibs.libXfixes
xlibs.libXrender
xlibs.libXtst
xlibs.libXScrnSaver
gnome2.GConf
nss
nspr
expat
eudev
# vsts
zynaddsubfx
distrho
zam-plugins
wolf-shaper
wolf-spectrum
lsp-plugins
];
# multilib packages
# -----------------
# these are packages compiled for multiple system
# architectures (32bit/64bit)
multiPkgs = pkgs: with pkgs; [ ];
# command
# -------
# the script which should be run right after starting this enviornment
#runScript = "/bin/bash";
runScript = "/usr/bin/bitwig-studio";
# environment variables
# ---------------------
profile = ''
export TERM="xterm"
'';
})