Merge #11067: SmartOS updates

I amended some commits slightly.

+103 -48
+3 -2
lib/platforms.nix
··· 8 openbsd = ["i686-openbsd" "x86_64-openbsd"]; 9 netbsd = ["i686-netbsd" "x86_64-netbsd"]; 10 cygwin = ["i686-cygwin" "x86_64-cygwin"]; 11 - unix = linux ++ darwin ++ freebsd ++ openbsd; 12 - all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd; 13 none = []; 14 allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; 15 mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux"];
··· 8 openbsd = ["i686-openbsd" "x86_64-openbsd"]; 9 netbsd = ["i686-netbsd" "x86_64-netbsd"]; 10 cygwin = ["i686-cygwin" "x86_64-cygwin"]; 11 + illumos = ["x86_64-solaris"]; 12 + unix = linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos; 13 + all = linux ++ darwin ++ cygwin ++ freebsd ++ openbsd ++ netbsd ++ illumos; 14 none = []; 15 allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; 16 mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux"];
+2
pkgs/applications/networking/browsers/w3m/default.nix
··· 19 sha256 = "1qx9f0kprf92r1wxl3sacykla0g04qsi0idypzz24b7xy9ix5579"; 20 }; 21 22 patches = [ ./glibc214.patch ] 23 # Patch for the newer unstable boehm-gc 7.2alpha. Not all platforms use that 24 # alpha. At the time of writing this, boehm-gc-7.1 is the last stable.
··· 19 sha256 = "1qx9f0kprf92r1wxl3sacykla0g04qsi0idypzz24b7xy9ix5579"; 20 }; 21 22 + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-lsocket -lnsl"; 23 + 24 patches = [ ./glibc214.patch ] 25 # Patch for the newer unstable boehm-gc 7.2alpha. Not all platforms use that 26 # alpha. At the time of writing this, boehm-gc-7.1 is the last stable.
+1 -1
pkgs/build-support/cc-wrapper/default.nix
··· 145 + optionalString (stdenv.isSunOS && nativePrefix != "") '' 146 # Solaris needs an additional ld wrapper. 147 ldPath="${nativePrefix}/bin" 148 - ld="$out/bin/ld-solaris" 149 wrap ld-solaris ${./ld-solaris-wrapper.sh} 150 '') 151
··· 145 + optionalString (stdenv.isSunOS && nativePrefix != "") '' 146 # Solaris needs an additional ld wrapper. 147 ldPath="${nativePrefix}/bin" 148 + exec="$ldPath/ld" 149 wrap ld-solaris ${./ld-solaris-wrapper.sh} 150 '') 151
+1 -1
pkgs/build-support/cc-wrapper/ld-solaris-wrapper.sh
··· 6 # I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'( 7 # Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3 8 # but still no success. 9 - cmd="@prog@ -z ignore" 10 11 args=("$@"); 12
··· 6 # I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'( 7 # Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3 8 # but still no success. 9 + cmd="@ld@ -z ignore" 10 11 args=("$@"); 12
+1 -1
pkgs/build-support/fetchgit/builder.sh
··· 6 7 header "exporting $url (rev $rev) into $out" 8 9 - $fetcher --builder --url "$url" --out "$out" --rev "$rev" \ 10 ${leaveDotGit:+--leave-dotGit} \ 11 ${deepClone:+--deepClone} \ 12 ${fetchSubmodules:+--fetch-submodules} \
··· 6 7 header "exporting $url (rev $rev) into $out" 8 9 + $SHELL $fetcher --builder --url "$url" --out "$out" --rev "$rev" \ 10 ${leaveDotGit:+--leave-dotGit} \ 11 ${deepClone:+--deepClone} \ 12 ${fetchSubmodules:+--fetch-submodules} \
+2
pkgs/build-support/gcc-wrapper-old/utils.sh
··· 14 # the temporary build directory). 15 if test "${p:0:1}" != "/"; then return 1; fi 16 17 # Otherwise, the path should refer to the store or some temporary 18 # directory (including the build directory). 19 test \
··· 14 # the temporary build directory). 15 if test "${p:0:1}" != "/"; then return 1; fi 16 17 + @extraPathTests@ 18 + 19 # Otherwise, the path should refer to the store or some temporary 20 # directory (including the build directory). 21 test \
+2 -2
pkgs/build-support/setup-hooks/patch-shebangs.sh
··· 19 local newInterpreterLine 20 21 find "$dir" -type f -perm -0100 | while read f; do 22 - if [ "$(head -1 "$f" | head -c +2)" != '#!' ]; then 23 # missing shebang => not a script 24 continue 25 fi 26 27 - oldInterpreterLine=$(head -1 "$f" | tail -c +3) 28 read -r oldPath arg0 args <<< "$oldInterpreterLine" 29 30 if $(echo "$oldPath" | grep -q "/bin/env$"); then
··· 19 local newInterpreterLine 20 21 find "$dir" -type f -perm -0100 | while read f; do 22 + if [ "$(head -1 "$f" | head -c+2)" != '#!' ]; then 23 # missing shebang => not a script 24 continue 25 fi 26 27 + oldInterpreterLine=$(head -1 "$f" | tail -c+3) 28 read -r oldPath arg0 args <<< "$oldInterpreterLine" 29 30 if $(echo "$oldPath" | grep -q "/bin/env$"); then
+1 -1
pkgs/development/compilers/gcc/4.8/default.nix
··· 294 ++ (optional stdenv.isDarwin gnused) 295 ; 296 297 - NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-lm -ldl"; 298 299 preConfigure = stdenv.lib.optionalString (stdenv.isSunOS && stdenv.is64bit) '' 300 export NIX_LDFLAGS=`echo $NIX_LDFLAGS | sed -e s~$prefix/lib~$prefix/lib/amd64~g` ··· 519 platforms = 520 stdenv.lib.platforms.linux ++ 521 stdenv.lib.platforms.freebsd ++ 522 optionals (langAda == false) stdenv.lib.platforms.darwin; 523 }; 524 }
··· 294 ++ (optional stdenv.isDarwin gnused) 295 ; 296 297 298 preConfigure = stdenv.lib.optionalString (stdenv.isSunOS && stdenv.is64bit) '' 299 export NIX_LDFLAGS=`echo $NIX_LDFLAGS | sed -e s~$prefix/lib~$prefix/lib/amd64~g` ··· 518 platforms = 519 stdenv.lib.platforms.linux ++ 520 stdenv.lib.platforms.freebsd ++ 521 + stdenv.lib.platforms.illumos ++ 522 optionals (langAda == false) stdenv.lib.platforms.darwin; 523 }; 524 }
+2 -2
pkgs/development/compilers/gcc/4.9/default.nix
··· 293 ++ (optional stdenv.isDarwin gnused) 294 ; 295 296 - NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-lm -ldl"; 297 - 298 preConfigure = stdenv.lib.optionalString (stdenv.isSunOS && stdenv.is64bit) '' 299 export NIX_LDFLAGS=`echo $NIX_LDFLAGS | sed -e s~$prefix/lib~$prefix/lib/amd64~g` 300 export LDFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $LDFLAGS_FOR_TARGET" 301 export CXXFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $CXXFLAGS_FOR_TARGET" ··· 518 platforms = 519 stdenv.lib.platforms.linux ++ 520 stdenv.lib.platforms.freebsd ++ 521 optionals (langAda == false) stdenv.lib.platforms.darwin; 522 }; 523 }
··· 293 ++ (optional stdenv.isDarwin gnused) 294 ; 295 296 preConfigure = stdenv.lib.optionalString (stdenv.isSunOS && stdenv.is64bit) '' 297 + sed -i -e "s/-lrt//g" libstdc++-v3/configure 298 export NIX_LDFLAGS=`echo $NIX_LDFLAGS | sed -e s~$prefix/lib~$prefix/lib/amd64~g` 299 export LDFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $LDFLAGS_FOR_TARGET" 300 export CXXFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $CXXFLAGS_FOR_TARGET" ··· 517 platforms = 518 stdenv.lib.platforms.linux ++ 519 stdenv.lib.platforms.freebsd ++ 520 + stdenv.lib.platforms.illumos ++ 521 optionals (langAda == false) stdenv.lib.platforms.darwin; 522 }; 523 }
+1
pkgs/development/compilers/sbcl/bootstrap.nix
··· 23 sha256 = "0sp5445rbvms6qvzhld0kwwvydw51vq5iaf4kdqsf2d9jvaz3yx5"; 24 }; 25 armv6l-linux = armv7l-linux; 26 }; 27 cfg = options.${stdenv.system}; 28 in
··· 23 sha256 = "0sp5445rbvms6qvzhld0kwwvydw51vq5iaf4kdqsf2d9jvaz3yx5"; 24 }; 25 armv6l-linux = armv7l-linux; 26 + x86_64-solaris = x86_64-linux; 27 }; 28 cfg = options.${stdenv.system}; 29 in
+1
pkgs/development/interpreters/perl/5.20/default.nix
··· 66 "-Dlocincpth=${libc}/include" 67 "-Dloclibpth=${libc}/lib" 68 ] 69 ++ optional enableThreading "-Dusethreads"; 70 71 configureScript = "${stdenv.shell} ./Configure";
··· 66 "-Dlocincpth=${libc}/include" 67 "-Dloclibpth=${libc}/lib" 68 ] 69 + ++ optional stdenv.isSunOS "-Dcc=gcc" 70 ++ optional enableThreading "-Dusethreads"; 71 72 configureScript = "${stdenv.shell} ./Configure";
+23 -10
pkgs/development/interpreters/perl/5.20/ld-shared.patch
··· 1 - --- perl-5.16.2/hints/solaris_2.sh.orig 2013-02-14 19:29:49.453988140 +0000 2 - +++ perl-5.16.2/hints/solaris_2.sh 2013-02-14 19:30:31.681631019 +0000 3 - @@ -568,7 +568,7 @@ 4 - # ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" 5 - # fi 6 - ldflags="$ldflags -m64" 7 - - lddlflags="$lddlflags -G -m64" 8 - + lddlflags="$lddlflags -shared -m64" 9 ;; 10 - *) 11 - getconfccflags="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
··· 1 + $NetBSD: patch-hints_solaris__2.sh,v 1.2 2015/10/27 09:10:44 jperkin Exp $ 2 + 3 + Redo PR pkg/44999. 4 + 5 + --- perl-5.20.2/hints/solaris_2.sh.orig 2015-05-13 20:19:29.000000000 +0000 6 + +++ perl-5.20.2/hints/solaris_2.sh 7 + @@ -585,7 +585,7 @@ EOM 8 + fi 9 + fi 10 + case "${cc:-cc} -v 2>/dev/null" in 11 + - *gcc*) 12 + + *gcc*|clang*) 13 + echo 'int main() { return 0; }' > try.c 14 + case "`${cc:-cc} $ccflags -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in 15 + *"m64 is not supported"*) 16 + @@ -622,7 +622,7 @@ EOM 17 + # use that with Solaris 11 and later, but keep 18 + # the old behavior for older Solaris versions. 19 + case "$osvers" in 20 + - 2.?|2.10) lddlflags="$lddlflags -G -m64" ;; 21 + + 2.?|2.10) lddlflags="$lddlflags -shared -m64" ;; 22 + *) lddlflags="$lddlflags -shared -m64" ;; 23 + esac 24 ;;
+1
pkgs/development/interpreters/perl/5.22/default.nix
··· 51 "-Dlocincpth=${libc}/include" 52 "-Dloclibpth=${libc}/lib" 53 ] 54 ++ optional enableThreading "-Dusethreads"; 55 56 configureScript = "${stdenv.shell} ./Configure";
··· 51 "-Dlocincpth=${libc}/include" 52 "-Dloclibpth=${libc}/lib" 53 ] 54 + ++ optional stdenv.isSunOS "-Dcc=gcc" 55 ++ optional enableThreading "-Dusethreads"; 56 57 configureScript = "${stdenv.shell} ./Configure";
+23 -10
pkgs/development/interpreters/perl/5.22/ld-shared.patch
··· 1 - --- perl-5.16.2/hints/solaris_2.sh.orig 2013-02-14 19:29:49.453988140 +0000 2 - +++ perl-5.16.2/hints/solaris_2.sh 2013-02-14 19:30:31.681631019 +0000 3 - @@ -568,7 +568,7 @@ 4 - # ccflags="$ccflags -Wa,`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" 5 - # fi 6 - ldflags="$ldflags -m64" 7 - - lddlflags="$lddlflags -G -m64" 8 - + lddlflags="$lddlflags -shared -m64" 9 ;; 10 - *) 11 - getconfccflags="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
··· 1 + $NetBSD: patch-hints_solaris__2.sh,v 1.2 2015/10/27 09:10:44 jperkin Exp $ 2 + 3 + Redo PR pkg/44999. 4 + 5 + --- perl-5.22.0/hints/solaris_2.sh.orig 2015-05-13 20:19:29.000000000 +0000 6 + +++ perl-5.22.0/hints/solaris_2.sh 7 + @@ -585,7 +585,7 @@ EOM 8 + fi 9 + fi 10 + case "${cc:-cc} -v 2>/dev/null" in 11 + - *gcc*) 12 + + *gcc*|clang*) 13 + echo 'int main() { return 0; }' > try.c 14 + case "`${cc:-cc} $ccflags -mcpu=v9 -m64 -S try.c 2>&1 | grep 'm64 is not supported by this configuration'`" in 15 + *"m64 is not supported"*) 16 + @@ -622,7 +622,7 @@ EOM 17 + # use that with Solaris 11 and later, but keep 18 + # the old behavior for older Solaris versions. 19 + case "$osvers" in 20 + - 2.?|2.10) lddlflags="$lddlflags -G -m64" ;; 21 + + 2.?|2.10) lddlflags="$lddlflags -shared -m64" ;; 22 + *) lddlflags="$lddlflags -shared -m64" ;; 23 + esac 24 ;;
+1 -1
pkgs/development/libraries/dbus/default.nix
··· 93 preBuild = makeInternalLib; 94 buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ]; 95 NIX_CFLAGS_LINK = 96 - stdenv.lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed " 97 + "-ldbus-1"; 98 99 # don't provide another dbus-1.pc (with incorrect include and link dirs),
··· 93 preBuild = makeInternalLib; 94 buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ]; 95 NIX_CFLAGS_LINK = 96 + stdenv.lib.optionalString (!stdenv.isDarwin && !stdenv.isSunOS) "-Wl,--as-needed " 97 + "-ldbus-1"; 98 99 # don't provide another dbus-1.pc (with incorrect include and link dirs),
+1 -1
pkgs/development/libraries/glib/default.nix
··· 65 66 configureFlags = 67 optional stdenv.isDarwin "--disable-compile-warnings" 68 - ++ optional stdenv.isSunOS "--disable-modular-tests"; 69 70 NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl" 71 + optionalString stdenv.isSunOS " -DBSD_COMP";
··· 65 66 configureFlags = 67 optional stdenv.isDarwin "--disable-compile-warnings" 68 + ++ optional stdenv.isSunOS ["--disable-modular-tests" "--with-libiconv"]; 69 70 NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl" 71 + optionalString stdenv.isSunOS " -DBSD_COMP";
+2
pkgs/development/libraries/libelf/default.nix
··· 15 nativeBuildInputs = [ glibc ]; 16 }; 17 18 meta = { 19 description = "ELF object file access library"; 20
··· 15 nativeBuildInputs = [ glibc ]; 16 }; 17 18 + buildInputs = [ gettext ]; 19 + 20 meta = { 21 description = "ELF object file access library"; 22
+1
pkgs/development/libraries/mpfr/default.nix
··· 14 propagatedBuildInputs = [ gmp ]; 15 16 configureFlags = 17 stdenv.lib.optional stdenv.is64bit "--with-pic"; 18 19 doCheck = true;
··· 14 propagatedBuildInputs = [ gmp ]; 15 16 configureFlags = 17 + stdenv.lib.optional stdenv.isSunOS "--disable-thread-safe" ++ 18 stdenv.lib.optional stdenv.is64bit "--with-pic"; 19 20 doCheck = true;
+9
pkgs/development/libraries/ncurses/default.nix
··· 27 "--enable-symlinks" 28 ] ++ lib.optional unicode "--enable-widec"; 29 30 buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm; 31 32 preConfigure = '' 33 configureFlagsArray+=("--includedir=$out/include") 34 export PKG_CONFIG_LIBDIR="$out/lib/pkgconfig" 35 mkdir -p "$PKG_CONFIG_LIBDIR" 36 '' + lib.optionalString stdenv.isCygwin '' 37 sed -i -e 's,LIB_SUFFIX="t,LIB_SUFFIX=",' configure 38 '';
··· 27 "--enable-symlinks" 28 ] ++ lib.optional unicode "--enable-widec"; 29 30 + # Only the C compiler, and explicitly not C++ compiler needs this flag on solaris: 31 + CFLAGS = lib.optionalString stdenv.isSunOS "-D_XOPEN_SOURCE_EXTENDED"; 32 + 33 buildInputs = lib.optional (mouseSupport && stdenv.isLinux) gpm; 34 35 preConfigure = '' 36 configureFlagsArray+=("--includedir=$out/include") 37 export PKG_CONFIG_LIBDIR="$out/lib/pkgconfig" 38 mkdir -p "$PKG_CONFIG_LIBDIR" 39 + '' 40 + + lib.optionalString stdenv.isSunOS '' 41 + sed -i -e '/-D__EXTENSIONS__/ s/-D_XOPEN_SOURCE=\$cf_XOPEN_SOURCE//' \ 42 + -e '/CPPFLAGS="$CPPFLAGS/s/ -D_XOPEN_SOURCE_EXTENDED//' \ 43 + configure 44 + CFLAGS=-D_XOPEN_SOURCE_EXTENDED 45 '' + lib.optionalString stdenv.isCygwin '' 46 sed -i -e 's,LIB_SUFFIX="t,LIB_SUFFIX=",' configure 47 '';
+2
pkgs/development/tools/documentation/doxygen/default.nix
··· 20 buildInputs = 21 [ perl python flex bison ] 22 ++ stdenv.lib.optional (qt4 != null) qt4 23 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices libiconv ]; 24 25 prefixKey = "--prefix "; 26 27 configureFlags = 28 [ "--dot dot" ] 29 ++ stdenv.lib.optional (qt4 != null) "--with-doxywizard"; 30 31 preConfigure =
··· 20 buildInputs = 21 [ perl python flex bison ] 22 ++ stdenv.lib.optional (qt4 != null) qt4 23 + ++ stdenv.lib.optional stdenv.isSunOS libiconv 24 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices libiconv ]; 25 26 prefixKey = "--prefix "; 27 28 configureFlags = 29 [ "--dot dot" ] 30 + ++ stdenv.lib.optional stdenv.isSunOS "--install install" 31 ++ stdenv.lib.optional (qt4 != null) "--with-doxywizard"; 32 33 preConfigure =
+3 -2
pkgs/development/tools/misc/pkgconfig/default.nix
··· 10 sha256 = "0sq09a39wj4cxf8l2jvkq067g08ywfma4v6nhprnf351s82pfl68"; 11 }; 12 13 - buildInputs = stdenv.lib.optional (stdenv.isCygwin || stdenv.isDarwin) libiconv; 14 15 - configureFlags = [ "--with-internal-glib" ]; 16 17 patches = (if vanilla then [] else [ 18 # Process Requires.private properly, see
··· 10 sha256 = "0sq09a39wj4cxf8l2jvkq067g08ywfma4v6nhprnf351s82pfl68"; 11 }; 12 13 + buildInputs = stdenv.lib.optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; 14 15 + configureFlags = [ "--with-internal-glib" ] 16 + ++ stdenv.lib.optional (stdenv.isSunOS) [ "--with-libiconv=gnu" "--with-system-library-path" "--with-system-include-path" "CFLAGS=-DENABLE_NLS" ]; 17 18 patches = (if vanilla then [] else [ 19 # Process Requires.private properly, see
+5 -2
pkgs/development/tools/misc/texinfo/6.0.nix
··· 1 - { stdenv, fetchurl, ncurses, perl, xz, interactive ? false }: 2 3 stdenv.mkDerivation rec { 4 name = "texinfo-6.0"; ··· 9 }; 10 11 buildInputs = [ perl xz ] 12 ++ stdenv.lib.optional interactive ncurses; 13 14 preInstall = '' 15 installFlags="TEXMF=$out/texmf-dist"; 16 installTargets="install install-tex"; 17 ''; 18 19 - doCheck = !stdenv.isDarwin && !interactive; 20 21 meta = { 22 homepage = "http://www.gnu.org/software/texinfo/";
··· 1 + { stdenv, fetchurl, ncurses, perl, xz, libiconv, gawk, interactive ? false }: 2 3 stdenv.mkDerivation rec { 4 name = "texinfo-6.0"; ··· 9 }; 10 11 buildInputs = [ perl xz ] 12 + ++ stdenv.lib.optionals stdenv.isSunOS [ libiconv gawk ] 13 ++ stdenv.lib.optional interactive ncurses; 14 15 + configureFlags = stdenv.lib.optionalString stdenv.isSunOS "AWK=${gawk}/bin/awk"; 16 + 17 preInstall = '' 18 installFlags="TEXMF=$out/texmf-dist"; 19 installTargets="install install-tex"; 20 ''; 21 22 + doCheck = !stdenv.isDarwin && !interactive && !stdenv.isSunOS/*flaky*/; 23 24 meta = { 25 homepage = "http://www.gnu.org/software/texinfo/";
+2 -2
pkgs/development/tools/parsing/bison/3.x.nix
··· 1 - { stdenv, fetchurl, m4, perl }: 2 3 stdenv.mkDerivation rec { 4 name = "bison-3.0.4"; ··· 8 sha256 = "b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e"; 9 }; 10 11 - nativeBuildInputs = [ m4 perl ]; 12 propagatedBuildInputs = [ m4 ]; 13 14 meta = {
··· 1 + { stdenv, fetchurl, m4, perl, help2man }: 2 3 stdenv.mkDerivation rec { 4 name = "bison-3.0.4"; ··· 8 sha256 = "b67fd2daae7a64b5ba862c66c07c1addb9e6b1b05c5f2049392cfd8a2172952e"; 9 }; 10 11 + nativeBuildInputs = [ m4 perl ] ++ stdenv.lib.optional stdenv.isSunOS help2man; 12 propagatedBuildInputs = [ m4 ]; 13 14 meta = {
+3 -3
pkgs/tools/misc/coreutils/default.nix
··· 36 touch -r src/stat.c src/tail.c 37 ''; 38 39 nativeBuildInputs = [ perl ]; 40 buildInputs = [ gmp ] 41 ++ optional aclSupport acl ··· 80 enableParallelBuilding = false; 81 82 NIX_LDFLAGS = optionalString selinuxSupport "-lsepol"; 83 84 makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0"; 85 ··· 103 }; 104 in 105 self 106 - // stdenv.lib.optionalAttrs (stdenv.system == "armv7l-linux" || stdenv.isSunOS) { 107 - FORCE_UNSAFE_CONFIGURE = 1; 108 - }
··· 36 touch -r src/stat.c src/tail.c 37 ''; 38 39 + configureFlags = optionalString stdenv.isSunOS "ac_cv_func_inotify_init=no"; 40 + 41 nativeBuildInputs = [ perl ]; 42 buildInputs = [ gmp ] 43 ++ optional aclSupport acl ··· 82 enableParallelBuilding = false; 83 84 NIX_LDFLAGS = optionalString selinuxSupport "-lsepol"; 85 + FORCE_UNSAFE_CONFIGURE = stdenv.lib.optionalString (stdenv.system == "armv7l-linux" || stdenv.isSunOS) "1"; 86 87 makeFlags = optionalString stdenv.isDarwin "CFLAGS=-D_FORTIFY_SOURCE=0"; 88 ··· 106 }; 107 in 108 self
+1 -1
pkgs/tools/misc/less/default.nix
··· 18 meta = { 19 homepage = http://www.greenwoodsoftware.com/less/; 20 description = "A more advanced file pager than ‘more’"; 21 - platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 22 maintainers = [ stdenv.lib.maintainers.eelco ]; 23 }; 24 }
··· 18 meta = { 19 homepage = http://www.greenwoodsoftware.com/less/; 20 description = "A more advanced file pager than ‘more’"; 21 + platforms = stdenv.lib.platforms.unix; 22 maintainers = [ stdenv.lib.maintainers.eelco ]; 23 }; 24 }
+1
pkgs/tools/networking/curl/default.nix
··· 47 ''; 48 49 configureFlags = [ 50 ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" ) 51 ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" ) 52 ( if ldapSupport then "--enable-ldap" else "--disable-ldap" )
··· 47 ''; 48 49 configureFlags = [ 50 + "--disable-manual" 51 ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" ) 52 ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" ) 53 ( if ldapSupport then "--enable-ldap" else "--disable-ldap" )
+3 -3
pkgs/tools/networking/haproxy/default.nix
··· 1 - { stdenv, pkgs, fetchurl, openssl }: 2 3 stdenv.mkDerivation rec { 4 majorVersion = "1.5"; ··· 10 sha256 = "16cg1jmy2d8mq2ypwifsvhbyp4pyrj0zm0r818sx0r4hchwdsrcm"; 11 }; 12 13 - buildInputs = [ openssl ]; 14 15 # TODO: make it work on darwin/bsd as well 16 preConfigure = '' 17 - export makeFlags="TARGET=linux2628 PREFIX=$out USE_OPENSSL=yes" 18 ''; 19 20 meta = {
··· 1 + { stdenv, pkgs, fetchurl, openssl, zlib }: 2 3 stdenv.mkDerivation rec { 4 majorVersion = "1.5"; ··· 10 sha256 = "16cg1jmy2d8mq2ypwifsvhbyp4pyrj0zm0r818sx0r4hchwdsrcm"; 11 }; 12 13 + buildInputs = [ openssl zlib ]; 14 15 # TODO: make it work on darwin/bsd as well 16 preConfigure = '' 17 + export makeFlags="TARGET=${if stdenv.isSunOS then "solaris" else "linux2628"} PREFIX=$out USE_OPENSSL=yes USE_ZLIB=yes" 18 ''; 19 20 meta = {
+1
pkgs/tools/text/gawk/default.nix
··· 12 doCheck = !( 13 stdenv.isCygwin # XXX: `test-dup2' segfaults on Cygwin 6.1 14 || stdenv.isDarwin # XXX: `locale' segfaults 15 ); 16 17 buildInputs = stdenv.lib.optional (stdenv.system != "x86_64-cygwin") libsigsegv
··· 12 doCheck = !( 13 stdenv.isCygwin # XXX: `test-dup2' segfaults on Cygwin 6.1 14 || stdenv.isDarwin # XXX: `locale' segfaults 15 + || stdenv.isSunOS # XXX: `_backsmalls1' fails, locale stuff? 16 ); 17 18 buildInputs = stdenv.lib.optional (stdenv.system != "x86_64-cygwin") libsigsegv
+1 -1
pkgs/tools/text/gnugrep/default.nix
··· 15 buildInputs = [ pcre libiconv ]; 16 17 # cygwin: FAIL: multibyte-white-space 18 - doCheck = !stdenv.isDarwin && !stdenv.isCygwin; 19 20 # On Mac OS X, force use of mkdir -p, since Grep's fallback 21 # (./install-sh) is broken.
··· 15 buildInputs = [ pcre libiconv ]; 16 17 # cygwin: FAIL: multibyte-white-space 18 + doCheck = !stdenv.isDarwin && !stdenv.isSunOS && !stdenv.isCygwin; 19 20 # On Mac OS X, force use of mkdir -p, since Grep's fallback 21 # (./install-sh) is broken.
+2 -1
pkgs/top-level/all-packages.nix
··· 16 # outside of the store. Thus, GCC, GFortran, & co. must always look for 17 # files in standard system directories (/usr/include, etc.) 18 noSysDirs ? (system != "x86_64-freebsd" && system != "i686-freebsd" 19 && system != "x86_64-kfreebsd-gnu") 20 21 # More flags for the bootstrapping of stdenv. ··· 3905 inherit noSysDirs; 3906 3907 # PGO seems to speed up compilation by gcc by ~10%, see #445 discussion 3908 - profiledCompiler = with stdenv; (!isDarwin && (isi686 || isx86_64)); 3909 3910 # When building `gcc.crossDrv' (a "Canadian cross", with host == target 3911 # and host != build), `cross' must be null but the cross-libc must still
··· 16 # outside of the store. Thus, GCC, GFortran, & co. must always look for 17 # files in standard system directories (/usr/include, etc.) 18 noSysDirs ? (system != "x86_64-freebsd" && system != "i686-freebsd" 19 + && system != "x86_64-solaris" 20 && system != "x86_64-kfreebsd-gnu") 21 22 # More flags for the bootstrapping of stdenv. ··· 3906 inherit noSysDirs; 3907 3908 # PGO seems to speed up compilation by gcc by ~10%, see #445 discussion 3909 + profiledCompiler = with stdenv; (!isSunOS && !isDarwin && (isi686 || isx86_64)); 3910 3911 # When building `gcc.crossDrv' (a "Canadian cross", with host == target 3912 # and host != build), `cross' must be null but the cross-libc must still
+1 -1
pkgs/top-level/perl-packages.nix
··· 6501 meta = { 6502 description = "The World-Wide Web library for Perl"; 6503 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; 6504 - platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 6505 }; 6506 }; 6507
··· 6501 meta = { 6502 description = "The World-Wide Web library for Perl"; 6503 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; 6504 + platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin ++ stdenv.lib.platforms.illumos; 6505 }; 6506 }; 6507