17 # To use the full release version:
18 # 1) Sign into https://backstage.renoise.com and download the release version to some stable location.
19 # 2) Override the releasePath attribute to point to the location of the newly downloaded bundle.
20 # Note: Renoise creates an individual build for each license which screws somewhat with the
21 # use of functions like requireFile as the hash will be different for every user.
25 archSuffix = "x86_64";
26 hash = "sha256-Etz6NaeLMysSkcQGC3g+IqUy9QrONCrbkyej63uLflo=";
30 hash = "sha256-PVpgxhJU8RY6QepydqImQnisWBjbrsuW4j49Xot3C6Y=";
34 in stdenv.mkDerivation rec {
38 src = if releasePath != null then
42 platform = platforms.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}");
43 urlVersion = lib.replaceStrings [ "." ] [ "_" ] version;
46 "https://files.renoise.com/demo/Renoise_${urlVersion}_Demo_Linux_${platform.archSuffix}.tar.gz";
67 cp renoise $out/renoise
69 for path in ${toString buildInputs}; do
70 ln -s $path/lib/*.so* $out/lib/
73 ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
76 ln -s $out/renoise $out/bin/renoise
79 mkdir -p $out/share/applications
80 cp -r Installer/renoise.desktop $out/share/applications/renoise.desktop
83 mkdir -p $out/share/icons/hicolor/{48x48,64x64,128x128}/apps
84 cp Installer/renoise-48.png $out/share/icons/hicolor/48x48/apps/renoise.png
85 cp Installer/renoise-64.png $out/share/icons/hicolor/64x64/apps/renoise.png
86 cp Installer/renoise-128.png $out/share/icons/hicolor/128x128/apps/renoise.png
91 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
92 --set-rpath ${mpg123}/lib:$out/lib \
95 for path in $out/AudioPluginServer*; do
97 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
98 --set-rpath $out/lib \
102 substituteInPlace $out/share/applications/renoise.desktop \
103 --replace Exec=renoise Exec=$out/bin/renoise
107 description = "Modern tracker-based DAW";
108 homepage = "https://www.renoise.com/";
109 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
110 license = lib.licenses.unfree;
111 maintainers = with lib.maintainers; [ uakci ];
112 platforms = lib.attrNames platforms;
113 mainProgram = "renoise";