Skip to content

Instantly share code, notes, and snippets.

@mrVanDalo
Created January 2, 2018 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrVanDalo/ca798c5a950b4f351f1f00809a996a56 to your computer and use it in GitHub Desktop.
Save mrVanDalo/ca798c5a950b4f351f1f00809a996a56 to your computer and use it in GitHub Desktop.
My bitwig fhsUser script (to run bitwig with vsts).
# NixOs fhs-user script
# ---------------------
#
# this is a script for NixOS users, to start Bitwig.
# It is quite similar to docker or rkt but it uses system libs
# to create a "normal" Linux environment so dynamic links can find
# everything they need.
# function header
# ---------------
{ pkgs ? import <nixpkgs> {} }:
# function call
# -------------
(pkgs.buildFHSUserEnv {
# name it
# -------
name = "bitwig";
# targetSystem packages
# ---------------------
# these are packages which are compiled for the target
# system architecture
targetPkgs = pkgs: with pkgs; [
# todo : check if they are needed
coreutils
curl
vim
tig
ack
which
bitwig-studio
liblo
zlib
fftw
minixml
libcxx
alsaLib
# the following are needed for building
#libcxxStdenv
glibc
# the following are needed for Sononym run
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
gnome3.gconf
nss
nspr
expat
eudev
ladspaPlugins
];
# 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 = "/usr/bin/bitwig-studio";
# environment variables
# ---------------------
profile = ''
export TERM="xterm"
'';
}).env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment