From 7f4d52e27ec9ea9d06c3f992bfee96a9d7ae58d5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 19 Jun 2016 20:27:36 +0200 Subject: [PATCH] Build libjack2 for supercollider with same GCC Also remove trailing whitespace --- .../interpreters/supercollider/default.nix | 14 ++++++++------ pkgs/misc/jackaudio/default.nix | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/development/interpreters/supercollider/default.nix b/pkgs/development/interpreters/supercollider/default.nix index f44347c61b74..be85cd248154 100644 --- a/pkgs/development/interpreters/supercollider/default.nix +++ b/pkgs/development/interpreters/supercollider/default.nix @@ -3,10 +3,12 @@ , libXt, qt, readline , useSCEL ? false, emacs }: - -let optional = stdenv.lib.optional; in -stdenv.mkDerivation rec { +let optional = stdenv.lib.optional; +ljack2 = libjack2.override { gcc = gcc; }; +in + +stdenv.mkDerivation rec { name = "supercollider-3.6.6"; meta = { @@ -29,12 +31,12 @@ stdenv.mkDerivation rec { cmakeFlags = '' -DSC_WII=OFF - -DSC_EL=${if useSCEL then "ON" else "OFF"} + -DSC_EL=${if useSCEL then "ON" else "OFF"} ''; nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [ - gcc libjack2 libsndfile fftw curl libXt qt readline ] + buildInputs = [ + gcc ljack2 libsndfile fftw curl libXt qt readline ] ++ optional useSCEL emacs; } diff --git a/pkgs/misc/jackaudio/default.nix b/pkgs/misc/jackaudio/default.nix index b5748c0f8328..66be12fbc43f 100644 --- a/pkgs/misc/jackaudio/default.nix +++ b/pkgs/misc/jackaudio/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, pkgconfig, python, makeWrapper -, bash, libsamplerate, libsndfile, readline +, bash, libsamplerate, libsndfile, readline, gcc # Optional Dependencies , dbus ? null, pythonDBus ? null, libffado ? null, alsaLib ? null @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkgconfig python makeWrapper ]; - buildInputs = [ + buildInputs = [ gcc python libsamplerate libsndfile readline