From c4733c3350e7f0bc79e5d35cc04a7046aa86f653 Mon Sep 17 00:00:00 2001 From: ndowens Date: Sun, 5 Mar 2017 18:00:50 -0600 Subject: [PATCH] s6-portable-utils: Trying again for gcc support --- pkgs/tools/misc/s6-portable-utils/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/s6-portable-utils/default.nix b/pkgs/tools/misc/s6-portable-utils/default.nix index 0b92b543f84e..7e81a37cc36c 100644 --- a/pkgs/tools/misc/s6-portable-utils/default.nix +++ b/pkgs/tools/misc/s6-portable-utils/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchFromGitHub, skalibs, gcc }: +with stdenv.lib; + stdenv.mkDerivation rec { name = "s6-portable-utils-${version}"; version = "2.1.0.0"; @@ -13,8 +15,8 @@ stdenv.mkDerivation rec { dontDisableStatic = true; - # Darwin Support, optional isDarwin failed - nativeBuildInputs = [ gcc ]; + nativeBuildInputs = [] + ++ optional stdenv.isDarwin gcc; configureFlags = [ "--with-sysdeps=${skalibs}/lib/skalibs/sysdeps" @@ -22,9 +24,10 @@ stdenv.mkDerivation rec { "--with-lib=${skalibs}/lib" "--with-dynlib=${skalibs}/lib" ] - ++ (stdenv.lib.optional stdenv.isDarwin "--target=${stdenv.system}"); + ++ (optional stdenv.isDarwin "--target=${stdenv.system}") + ++ (optional stdenv.isDarwin "--with-gcc=${gcc}/bin"); - meta = with stdenv.lib; { + meta = { homepage = http://www.skarnet.org/software/s6-portable-utils/; description = "A set of tiny general Unix utilities optimized for simplicity and small size"; platforms = platforms.all;