git.iko.soy/typeable/nixpkgs
on master help sign in
renoise: srcVersion -> urlVersion
commitf2daf23137d1def839882691b7daf6738cfa9e58 authorYegor Timoshenko <yegortimoshenko@riseup.net> dateThu 24 May 2018, 11:04 (9 years ago) parent4e049b2
1 file changed+8−6
pkgs/applications/audio/renoise/default.nix+8−6
pkgs/applications/audio/renoise/default.nix+8−6
@@ -1,4 +1,6 @@
1−{ stdenv, lib, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }:
1+{ stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsaLib, releasePath ? null }:
2+
3+with stdenv.lib;
24
35# To use the full release version:
46# 1) Sign into https://backstage.renoise.com and download the appropriate (x86 or x86_64) version
@@ -7,7 +9,7 @@
79# Note: Renoise creates an individual build for each license which screws somewhat with the
810# use of functions like requireFile as the hash will be different for every user.
911let
10− srcVersion = version: lib.replaceStrings ["."] ["_"] version;
12+ urlVersion = replaceStrings [ "." ] [ "_" ];
1113in
1214
1315stdenv.mkDerivation rec {
@@ -18,15 +20,15 @@ stdenv.mkDerivation rec {
1820 if stdenv.system == "x86_64-linux" then
1921 if builtins.isNull releasePath then
2022 fetchurl {
21− url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86_64.tar.bz2";
22− sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga";
23+ url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86_64.tar.bz2";
24+ sha256 = "0pan68fr22xbj7a930y29527vpry3f07q3i9ya4fp6g7aawffsga";
2325 }
2426 else
2527 releasePath
2628 else if stdenv.system == "i686-linux" then
2729 if builtins.isNull releasePath then
2830 fetchurl {
29− url = "http://files.renoise.com/demo/Renoise_${srcVersion version}_Demo_x86.tar.bz2";
31+ url = "http://files.renoise.com/demo/Renoise_${urlVersion version}_Demo_x86.tar.bz2";
3032 sha256 = "1lccjj4k8hpqqxxham5v01v2rdwmx3c5kgy1p9lqvzqma88k4769";
3133 }
3234 else
@@ -56,7 +58,7 @@ stdenv.mkDerivation rec {
5658 patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) --set-rpath $out/lib $out/renoise
5759 '';
5860
59− meta = with stdenv.lib; {
61+ meta = {
6062 description = "Modern tracker-based DAW";
6163 homepage = http://www.renoise.com/;
6264 license = licenses.unfree;