nixos-config/pkgs/sononym/default.nix

132 lines
2.6 KiB
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ pkgs, stdenv, fetchurl }:
2019-11-05 21:06:22 +01:00
with lib;
2019-11-05 21:06:22 +01:00
let
2019-12-20 05:54:26 +01:00
sononymPkg = stdenv.mkDerivation rec {
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
name = "sononym-${version}";
version = "1.1.1";
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
src = fetchurl {
url = "https://www.sononym.net/download/sononym-${version}.tar.bz2";
sha256 = "0snp624yg68k2g9myjpb7pam9s32ilbn2ixi5zfi0ya9ikdrk504";
};
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
installPhase = ''
mkdir -p $out/usr/share/sononym
cp -r * $out/usr/share/sononym/
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
mkdir -p $out/bin
ln -s $out/usr/share/sononym/sononym $out/bin/sononym
'';
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
meta = {
description = "Modern tracker-based DAW";
homepage = "http://www.renoise.com/";
license = licenses.unfree;
maintainers = [ ];
platforms = [ "x86_64-linux" ];
};
2019-11-05 21:06:22 +01:00
2019-12-20 05:54:26 +01:00
};
2019-11-05 21:06:22 +01:00
2021-11-01 09:20:42 +01:00
in
(pkgs.buildFHSUserEnv {
2019-11-05 21:06:22 +01:00
# name it
# -------
name = "sononym";
# targetSystem packages
# ---------------------
# these are packages which are compiled for the target
# system architecture
2019-12-20 05:54:26 +01:00
targetPkgs = pkgs:
with pkgs; [
sononymPkg
# Reihenfolge ist anscheinend wichtig !
# todo : das hier aufräumen
chromium
eudev
expat
freetype
fuse
gdk_pixbuf
glib
gtk2-x11
mesa_glu
libresample
libtool
autoconf
automake
gnum4
pkgconfig
gnumake
jack2Full
gcc49
nodejs-10_x
mpg123
libcxx
glibc
binutils
python27
unzip
alsaLib.out
atk.out
cairo.out
cups.lib
dbus_daemon.lib
fontconfig.lib
gcc-unwrapped.lib
gdk_pixbuf.out
glib.out
gnome2.GConf.out
gnome2.pango.out
gnome3.gtk.out
nspr.out
nssTools.out
wget
xlibs.libX11.out
xlibs.libXScrnSaver.out
xlibs.libXcomposite.out
xlibs.libXcursor.out
xlibs.libXdamage.out
xlibs.libXfixes.out
xlibs.libXi.out
xlibs.libXrandr.out
xlibs.libXrender.out
xlibs.libXtst.out
xlibs.libxcb.out
xorg_sys_opengl.out
];
2019-11-05 21:06:22 +01:00
# multilib packages
# -----------------
# these are packages compiled for multiple system
# architectures (32bit/64bit)
2019-12-20 05:54:26 +01:00
multiPkgs = pkgs: with pkgs; [ ];
2019-11-05 21:06:22 +01:00
# command
# -------
# the script which should be run right after starting this enviornment
runScript = "/bin/sononym";
# environment variables
# ---------------------
profile = ''
export TERM="xterm"
export CMAKE_INCLUDE_PATH="/usr/include"
export CMAKE_LIBRARY_PATH="/usr/lib/"
export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 0))
export NPM_CONFIG_PREFIX=~/.npm-global
'';
})