Merge #8363: pure-darwin stdenv
This commit is contained in:
@@ -19,8 +19,8 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ gcc49 icmake libmilter libX11 openssl readline utillinux
|
||||
yodl ];
|
||||
buildInputs = [ gcc49 libmilter libX11 openssl readline utillinux ];
|
||||
nativeBuildInputs = [ icmake yodl ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace INSTALL.im --replace /usr $out
|
||||
|
||||
50
pkgs/development/libraries/fmod/4.24.16.nix
Normal file
50
pkgs/development/libraries/fmod/4.24.16.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
assert (stdenv.system == "x86_64-linux") || (stdenv.system == "i686-linux");
|
||||
let
|
||||
bits = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") "64";
|
||||
|
||||
libPath = stdenv.lib.makeLibraryPath
|
||||
[ stdenv.cc.libc stdenv.cc.cc ] + ":${stdenv.cc.cc}/lib64";
|
||||
patchLib = x: "patchelf --set-rpath ${libPath} ${x}";
|
||||
|
||||
src =
|
||||
(if (bits == "64") then
|
||||
fetchurl {
|
||||
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi42416linux64.tar.gz";
|
||||
sha256 = "0hkwlzchzzgd7fanqznbv5bs53z2qy8iiv9l2y77l4sg1jwmlm6y";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "http://www.fmod.org/download/fmodex/api/Linux/fmodapi42416linux.tar.gz";
|
||||
sha256 = "13diw3ax2slkr99mwyjyc62b8awc30k0z08cvkpk2p3i1j6f85m5";
|
||||
}
|
||||
);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
inherit src;
|
||||
|
||||
name = "fmod-${version}";
|
||||
version = "4.24.16";
|
||||
|
||||
dontStrip = true;
|
||||
buildPhase = "true";
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib $out/include/fmodex
|
||||
|
||||
cd api/inc && cp * $out/include/fmodex && cd ../lib
|
||||
cp libfmodex${bits}-${version}.so $out/lib/libfmodex.so
|
||||
cp libfmodex${bits}L-${version}.so $out/lib/libfmodexL.so
|
||||
|
||||
${patchLib "$out/lib/libfmodex.so"}
|
||||
${patchLib "$out/lib/libfmodexL.so"}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Programming library and toolkit for the creation and playback of interactive audio";
|
||||
homepage = "http://www.fmod.org/";
|
||||
license = stdenv.lib.licenses.unfreeRedistributable;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.lassulus ];
|
||||
};
|
||||
}
|
||||
@@ -19,7 +19,12 @@ stdenv.mkDerivation (rec {
|
||||
"--with-included-gettext"
|
||||
"--with-included-glib"
|
||||
"--with-included-libcroco"
|
||||
]);
|
||||
])
|
||||
# avoid retaining reference to CF during stdenv bootstrap
|
||||
++ (stdenv.lib.optionals stdenv.isDarwin [
|
||||
"gt_cv_func_CFPreferencesCopyAppValue=no"
|
||||
"gt_cv_func_CFLocaleCopyCurrent=no"
|
||||
]);
|
||||
|
||||
# On cross building, gettext supposes that the wchar.h from libc
|
||||
# does not fulfill gettext needs, so it tries to work with its
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ callPackage, fetchurl, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // rec {
|
||||
version = "3.4.1";
|
||||
version = "3.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/gnutls-${version}.tar.lz";
|
||||
sha256 = "06wiwsydfpy5fn86ip4x2s507483l4y847kr1p2chgjw0wqc8vjy";
|
||||
sha256 = "1wzasbrs4ncq4yisqyvifl7mzlyyg1pb0idr4fhjmcfpi13sxlaw";
|
||||
};
|
||||
})
|
||||
|
||||
@@ -32,6 +32,11 @@ stdenv.mkDerivation {
|
||||
configureFlags = "--disable-debug" +
|
||||
stdenv.lib.optionalString stdenv.isDarwin " --enable-rpath";
|
||||
|
||||
# remove dependency on bootstrap-tools in early stdenv build
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/INSTALL_CMD=.*install/INSTALL_CMD=install/' $out/lib/icu/${version}/pkgdata.inc
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -17,5 +17,6 @@ stdenv.mkDerivation rec {
|
||||
description = "Implementation of the EBU R128 loudness standard";
|
||||
homepage = https://github.com/jiixyj/libebur128;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.andrewrk ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
||||
] else null;
|
||||
|
||||
postInstall = ''
|
||||
sed -i ${stdenv.lib.optionalString (stdenv.isDarwin && stdenv.cc.nativeTools) "''"} s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
||||
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-widec" ];
|
||||
|
||||
@@ -18,5 +18,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = https://github.com/andrewrk/libgroove;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.andrewrk ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,8 +8,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0zcwjav1qgr7ikmvfmy7g3nc7s1kj4j4939d18mpyha9mwy4mv6r";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libmnl ];
|
||||
buildInputs = [ libmnl ];
|
||||
propagatedBuildInputs = [ libnfnetlink ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Userspace library providing an API to the in-kernel connection tracking state table";
|
||||
|
||||
@@ -27,7 +27,8 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook icu libxslt pkgconfig ];
|
||||
buildInputs = [ icu libxslt ];
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
|
||||
configureFlags = "--disable-static --enable-man";
|
||||
|
||||
|
||||
@@ -105,5 +105,5 @@ in
|
||||
//
|
||||
mapAttrs (v: h: mkWithAutotools stable (toVersion v) h) {
|
||||
v1_2_0 = "1nbp8qpgw64gl9nrjzxw0ndv1m64cfms0cy5a2883vw6877kizmx";
|
||||
v1_5_0 = "1j0871mxw97680ghlqy0dpyfmr26kqa0lk26a2bgcqf4ghqap24x";
|
||||
v1_6_1 = "10w9pjbmqcv03v04rnjd8mdh886j7v4y0svdsdklz69zskgdvvqg";
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ stdenv.mkDerivation {
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ autoreconfHook libjpeg libpng12 libX11 zlib ];
|
||||
buildInputs = [ libjpeg libpng12 libX11 zlib ];
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
preAutoreconf = ''
|
||||
cd nxcomp/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, openssl, cyrus_sasl, db, groff}:
|
||||
{ stdenv, fetchurl, autoconf, openssl, cyrus_sasl, db, groff }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openldap-2.4.40";
|
||||
@@ -8,8 +8,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1nyslrgwxwilgv5sixc37svls5rbvhsv9drb7hlrjr2vqaji29ni";
|
||||
};
|
||||
|
||||
# Last tested for openldap 2.4.40
|
||||
patches = [ ./fix-libdb-detection-gcc5.patch ];
|
||||
|
||||
nativeBuildInputs = [ autoconf ];
|
||||
buildInputs = [ openssl cyrus_sasl db groff ];
|
||||
|
||||
# NOTE: Only needed for the gcc5 patch
|
||||
preConfigure = ''
|
||||
autoconf
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
[ "--enable-overlays"
|
||||
"--disable-dependency-tracking" # speeds up one-time build
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From f0409f40dab6013d1aec05f5c86ae31d2f49b485 Mon Sep 17 00:00:00 2001
|
||||
From: Jan Synacek <jsynacek@redhat.com>
|
||||
Date: Wed, 11 Feb 2015 10:32:28 +0100
|
||||
Subject: [PATCH] fix libdb detection with gcc 5
|
||||
|
||||
The old cpp version generated:
|
||||
__db_version 5
|
||||
|
||||
The new output:
|
||||
__db_version
|
||||
5
|
||||
|
||||
Running cpp with -P (inhibit linemarkers generation) fixes this when using gcc 5.
|
||||
Behavior with older versions of gcc is not changed.
|
||||
---
|
||||
build/openldap.m4 | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/build/openldap.m4 b/build/openldap.m4
|
||||
index caf8fc2..bdcb4d6 100644
|
||||
--- a/build/openldap.m4
|
||||
+++ b/build/openldap.m4
|
||||
@@ -328,7 +328,7 @@ AC_DEFUN([OL_BDB_HEADER_VERSION],
|
||||
#endif
|
||||
__db_version DB_VERSION_MAJOR
|
||||
])
|
||||
- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
|
||||
+ set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
|
||||
ol_cv_bdb_major=${3}
|
||||
])
|
||||
case $ol_cv_bdb_major in [[1-9]]*) : ;; *)
|
||||
@@ -344,7 +344,7 @@ AC_CACHE_CHECK([for Berkeley DB minor version in db.h], [ol_cv_bdb_minor],[
|
||||
#endif
|
||||
__db_version DB_VERSION_MINOR
|
||||
])
|
||||
- set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
|
||||
+ set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
|
||||
ol_cv_bdb_minor=${3}
|
||||
])
|
||||
case $ol_cv_bdb_minor in [[0-9]]*) : ;; *)
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -1,26 +1,18 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "proj-4.8.0";
|
||||
name = "proj-4.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://download.osgeo.org/proj/proj-4.8.0.tar.gz;
|
||||
sha256 = "1dfim63ks298204lv2z0v16njz6fs7bf0m4icy09i3ffzvqdpcid";
|
||||
url = http://download.osgeo.org/proj/proj-4.9.1.tar.gz;
|
||||
sha256 = "06f36s7yi6yky92g235kj9wkcckm04qgzxnj0fla3icb7y7ki87w";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
patch src/Makefile <<EOF
|
||||
272c272
|
||||
< include_HEADERS = proj_api.h org_proj4_Projections.h
|
||||
---
|
||||
> include_HEADERS = proj_api.h org_proj4_Projections.h projects.h
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cartographic Projections Library";
|
||||
homepage = http://trac.osgeo.org/proj/;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
33
pkgs/development/libraries/sqlite-amalgamation/default.nix
Normal file
33
pkgs/development/libraries/sqlite-amalgamation/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib, stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sqlite-amalgamation-201505302257";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.sqlite.org/snapshot/sqlite-amalgamation-201505302257.zip";
|
||||
sha256 = "0488wjrpnxd61g7pcka6fckx0q8yl1k26i6q5hrmkm92qcpml76h";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "buildPhase" ];
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out
|
||||
cp sqlite3.c $out/
|
||||
cp sqlite3.h $out/
|
||||
cp sqlite3ext.h $out/
|
||||
cp shell.c $out/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.sqlite.org/;
|
||||
description = "A single C code file, named sqlite3.c, that contains all C code for the core SQLite library and the FTS3 and RTREE extensions";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.lassulus ];
|
||||
};
|
||||
}
|
||||
55
pkgs/development/libraries/wxmac/default.nix
Normal file
55
pkgs/development/libraries/wxmac/default.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ stdenv, fetchurl, setfile, rez, derez,
|
||||
expat, libiconv, libjpeg, libpng, libtiff, zlib
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.0.2";
|
||||
name = "wxmac-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/wxwindows/wxWidgets-${version}.tar.bz2";
|
||||
sha256 = "346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d";
|
||||
};
|
||||
|
||||
patches = [ ./wx.patch ];
|
||||
|
||||
buildInputs = [ setfile rez derez expat libiconv libjpeg libpng libtiff zlib ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-unicode"
|
||||
"--with-osx_cocoa"
|
||||
"--enable-std_string"
|
||||
"--enable-display"
|
||||
"--with-opengl"
|
||||
"--with-libjpeg"
|
||||
"--with-libtiff"
|
||||
"--without-liblzma"
|
||||
"--with-libpng"
|
||||
"--with-zlib"
|
||||
"--enable-dnd"
|
||||
"--enable-clipboard"
|
||||
"--enable-webkit"
|
||||
"--enable-svg"
|
||||
"--enable-graphics_ctx"
|
||||
"--enable-controls"
|
||||
"--enable-dataviewctrl"
|
||||
"--with-expat"
|
||||
"--disable-precomp-headers"
|
||||
"--disable-mediactrl"
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
./wx-config --libs
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
platforms = platforms.darwin;
|
||||
maintainers = [ maintainers.lnl7 ];
|
||||
};
|
||||
}
|
||||
59
pkgs/development/libraries/wxmac/wx.patch
Normal file
59
pkgs/development/libraries/wxmac/wx.patch
Normal file
@@ -0,0 +1,59 @@
|
||||
diff --git a/include/wx/defs.h b/include/wx/defs.h
|
||||
index 397ddd7..d128083 100644
|
||||
--- a/include/wx/defs.h
|
||||
+++ b/include/wx/defs.h
|
||||
@@ -3169,12 +3169,20 @@ DECLARE_WXCOCOA_OBJC_CLASS(UIImage);
|
||||
DECLARE_WXCOCOA_OBJC_CLASS(UIEvent);
|
||||
DECLARE_WXCOCOA_OBJC_CLASS(NSSet);
|
||||
DECLARE_WXCOCOA_OBJC_CLASS(EAGLContext);
|
||||
+DECLARE_WXCOCOA_OBJC_CLASS(UIWebView);
|
||||
|
||||
typedef WX_UIWindow WXWindow;
|
||||
typedef WX_UIView WXWidget;
|
||||
typedef WX_EAGLContext WXGLContext;
|
||||
typedef WX_NSString* WXGLPixelFormat;
|
||||
|
||||
+typedef WX_UIWebView OSXWebViewPtr;
|
||||
+
|
||||
+#endif
|
||||
+
|
||||
+#if wxOSX_USE_COCOA_OR_CARBON
|
||||
+DECLARE_WXCOCOA_OBJC_CLASS(WebView);
|
||||
+typedef WX_WebView OSXWebViewPtr;
|
||||
#endif
|
||||
|
||||
#endif /* __WXMAC__ */
|
||||
diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h
|
||||
index 8700367..f805099 100644
|
||||
--- a/include/wx/html/webkit.h
|
||||
+++ b/include/wx/html/webkit.h
|
||||
@@ -18,7 +18,6 @@
|
||||
#endif
|
||||
|
||||
#include "wx/control.h"
|
||||
-DECLARE_WXCOCOA_OBJC_CLASS(WebView);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Web Kit Control
|
||||
@@ -107,7 +106,7 @@ private:
|
||||
wxString m_currentURL;
|
||||
wxString m_pageTitle;
|
||||
|
||||
- WX_WebView m_webView;
|
||||
+ OSXWebViewPtr m_webView;
|
||||
|
||||
// we may use this later to setup our own mouse events,
|
||||
// so leave it in for now.
|
||||
diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h
|
||||
index 803f8b0..438e532 100644
|
||||
--- a/include/wx/osx/webview_webkit.h
|
||||
+++ b/include/wx/osx/webview_webkit.h
|
||||
@@ -158,7 +158,7 @@ private:
|
||||
wxWindowID m_windowID;
|
||||
wxString m_pageTitle;
|
||||
|
||||
- wxObjCID m_webView;
|
||||
+ OSXWebViewPtr m_webView;
|
||||
|
||||
// we may use this later to setup our own mouse events,
|
||||
// so leave it in for now.
|
||||
@@ -13,6 +13,13 @@ stdenv.mkDerivation (rec {
|
||||
sha256 = "039agw5rqvqny92cpkrfn243x2gd4xn13hs3xi6isk55d2vqqr9n";
|
||||
};
|
||||
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure \
|
||||
--replace '/usr/bin/libtool' 'ar' \
|
||||
--replace 'AR="libtool"' 'AR="ar"' \
|
||||
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
|
||||
'';
|
||||
|
||||
configureFlags = if static then "" else "--shared";
|
||||
|
||||
preConfigure = ''
|
||||
|
||||
Reference in New Issue
Block a user