From 58f0071a9ea0977cf42b2d85629b4da12c7d0d99 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 27 Feb 2016 19:56:18 +0200 Subject: [PATCH] renoise: Don't use builtins.currentSystem stdenv.system should be almost always used instead of builtins.currentSystem or cross-evaluation (e.g. evaluating a i686 NixOS system on a 64-bit nix) will be subtly broken. --- pkgs/applications/audio/renoise/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index f98f7862475..39c0d579e81 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -6,7 +6,7 @@ stdenv.mkDerivation rec { buildInputs = [ libX11 libXext libXcursor libXrandr alsaLib libjack2 ]; src = - if builtins.currentSystem == "x86_64-linux" then + if stdenv.system == "x86_64-linux" then if demo then fetchurl { url = "http://files.renoise.com/demo/Renoise_3_0_1_Demo_x86_64.tar.bz2"; @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { name = "rns_3_0_1_linux_x86_64.tar.gz"; sha256 = "1yb5w5jrg9dk9fg5rfvfk6p0rxn4r4i32vxp2l9lzhbs02pv15wd"; } - else if builtins.currentSystem == "i686-linux" then + else if stdenv.system == "i686-linux" then if demo then fetchurl { url = "http://files.renoise.com/demo/Renoise_3_0_1_Demo_x86.tar.bz2";