renoise: 3.0.1 -> 3.1.0 (#28380)

Replaced demo parameter with releasePath parameter.

authored by Sean Parsons and committed by moritz.vongoewels.de 830d8b3b ea064461

+19 -22
+18 -19
pkgs/applications/audio/renoise/default.nix
··· 1 - { stdenv, lib, requireFile, demo, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, ... }: 2 3 stdenv.mkDerivation rec { 4 name = "renoise"; 5 - 6 buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; 7 8 src = 9 if stdenv.system == "x86_64-linux" then 10 - if demo then 11 fetchurl { 12 - url = "http://files.renoise.com/demo/Renoise_3_0_1_Demo_x86_64.tar.bz2"; 13 - sha256 = "1q7f94wz2dbz659kpp53a3n1qyndsk0pkb29lxdff4pc3ddqwykg"; 14 } 15 else 16 - requireFile { 17 - url = "http://backstage.renoise.com/frontend/app/index.html#/login"; 18 - name = "rns_3_0_1_linux_x86_64.tar.gz"; 19 - sha256 = "1yb5w5jrg9dk9fg5rfvfk6p0rxn4r4i32vxp2l9lzhbs02pv15wd"; 20 - } 21 else if stdenv.system == "i686-linux" then 22 - if demo then 23 fetchurl { 24 - url = "http://files.renoise.com/demo/Renoise_3_0_1_Demo_x86.tar.bz2"; 25 - sha256 = "0dgqvib4xh2yhgh2wajj11wsb6xiiwgfkhyz32g8vnyaij5q8f58"; 26 } 27 else 28 - requireFile { 29 - url = "http://backstage.renoise.com/frontend/app/index.html#/login"; 30 - name = "rns_3_0_1_reg_x86.tar.gz"; 31 - sha256 = "1swax2jz0gswdpzz8alwjfd8rhigc2yfspj7p8wvdvylqrf7n8q7"; 32 - } 33 - else throw "platform is not suppored by Renoise"; 34 35 installPhase = '' 36 cp -r Resources $out
··· 1 + { stdenv, lib, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }: 2 3 + # To use the full release version: 4 + # 1) Sign into https://backstage.renoise.com and download the appropriate (x86 or x86_64) version 5 + # for your machine to some stable location. 6 + # 2) Override the releasePath attribute to point to the location of the newly downloaded bundle. 7 + # Note: Renoise creates an individual build for each license which screws somewhat with the 8 + # use of functions like requireFile as the hash will be different for every user. 9 + let fileversion = "3_1_0"; 10 + in 11 stdenv.mkDerivation rec { 12 name = "renoise"; 13 buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; 14 15 src = 16 if stdenv.system == "x86_64-linux" then 17 + if builtins.isNull releasePath then 18 fetchurl { 19 + url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86_64.tar.bz2"; 20 + sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga"; 21 } 22 else 23 + releasePath 24 else if stdenv.system == "i686-linux" then 25 + if builtins.isNull releasePath then 26 fetchurl { 27 + url = "http://files.renoise.com/demo/Renoise_${fileversion}_Demo_x86.tar.bz2"; 28 + sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769"; 29 } 30 else 31 + releasePath 32 + else throw "Platform is not supported by Renoise"; 33 34 installPhase = '' 35 cp -r Resources $out
+1 -3
pkgs/top-level/all-packages.nix
··· 15823 rancher-compose 15824 rancher-compose_0_10; 15825 15826 - renoise = callPackage ../applications/audio/renoise { 15827 - demo = false; 15828 - }; 15829 15830 rapcad = libsForQt56.callPackage ../applications/graphics/rapcad { boost = boost159; }; 15831
··· 15823 rancher-compose 15824 rancher-compose_0_10; 15825 15826 + renoise = callPackage ../applications/audio/renoise {}; 15827 15828 rapcad = libsForQt56.callPackage ../applications/graphics/rapcad { boost = boost159; }; 15829