Commit graph

14825 commits

Author SHA1 Message Date
Jaka Hudoklin
65cc76c44a libjpeg_original: add optional static builds 2014-04-01 01:58:53 +02:00
Jaka Hudoklin
c3524a8dd6 optipng: use system libpng & zlib, fix cross builds and add support for static builds 2014-04-01 01:43:56 +02:00
Vladimír Čunát
42ef963cd2 libarchive: *permanently* fix patch source and hash
Unfortunately github's *.patch URIs contain version of git generating them,
which changes from time to time. It seems that *.diff doesn't suffer from that.

Conflicts:
	pkgs/development/libraries/libarchive/default.nix
2014-03-30 20:40:25 +02:00
aszlig
23b43c6a9b
gcc-4.8: Use --with-as/ld for MinGW-w64 as well.
On MinGW, we're passing these programs to the configure script, but this
obviously won't work for non-autoconf-based projects.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:55:51 +01:00
aszlig
c7bac81c66
Merge 'mingw-w64' and 'darwin' into cross-win-osx.
Both branches have quite a lot in common, so it's time for a merge and
do the cleanups with respect to both implementations and also generalize
both implementations as much as possible.

This also closes #1876.

Conflicts:
	pkgs/development/interpreters/lua-5/5.2.nix
	pkgs/development/libraries/SDL/default.nix
	pkgs/development/libraries/glew/default.nix
	pkgs/top-level/all-packages.nix
2014-03-12 10:16:51 +01:00
aszlig
5eb3dd8a1b
cmake: Add patch for fixing Darwin cross-builds.
This is an upstream patch and will eventually get into the next release.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:49 +01:00
aszlig
6998a866a8
SDL: Refactor package and fix Darwin cross-builds.
First of all, this needs two upstream patches for supporting OS X 10.9,
also the cross-gcc doesn't accept -fpascal-strings, so drop the flag.

And except putting all configure flags into a multiline string, we're
now using a list, which is easier when it comes to handling optional
components.

As X isn't used on recent Mac OS X versions and Windows, I'm temporarily
using --without-x for cross-builds until we have a better way to check
for those things.

Also, don't add audiofile to buildInputs if we're cross-compiling for
MinGW.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:48 +01:00
aszlig
cdaced58ae
libpng12/cross: Don't add zlib for Darwin builds.
Cross builds for Darwin already include the CoreFoundation and the
libraries from XCode, so zlib already exists on that platform.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:48 +01:00
aszlig
f73851710e
audiofile: Use alsaLib for native Linux only.
Using ALSA for non-Linux systems really doesn't make much sense, so
using buildNativeInputs to ensure it won't be used for cross-builds.

Of course, if you're cross-building to Linux, the dependency won't be
used, but right now we don't have a good way to easily check whether the
cross target is Linux.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:48 +01:00
aszlig
5e95800f26
openssl: Use Darwin patch for cross-builds too.
Might be better to have something like stdenv.isDarwinTarget, which can
be used to test for native Darwin _and_ cross-built Darwin as a target.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:47 +01:00
aszlig
8c053312b5
zlib/cross: Fix build for Darwin.
Provide the correct cross ranlib, because native ranlib will fail.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:47 +01:00
aszlig
30962765e0
openssl/cross: Fix build for Darwin.
This is just a minor fix, because when using "darwin64-x86_64-cc" for
config.openssl.system, the OpenSSL build scripts try to compile with
$prefix-cc, which is not available with the gcc-cross-wrapper.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:47 +01:00
aszlig
3d73bf6c57
glew/cross: Fix build for Darwin.
The Makefile still contained calls to install with the -s (strip)
option, which we don't want because it uses the native strip utility and
we're going to crossStrip in fixupPhase later anyway.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:46 +01:00
aszlig
745c477930
lua5.2/cross: Fix build for Darwin.
The ld from cctools doesn't like the -soname argument, so let's strip it
off for now until we have a binutils <-> cctools bridge.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:46 +01:00
aszlig
a9ef42f33c
gcc-4.8: Add ObjC and ObjC++ support for Darwin.
Cross-compiling stuff against Mac OS X's CoreFoundation won't work
without ObjC support, and we don't want to compile commandline utilities
only, right?

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:45 +01:00
aszlig
9a0a85827c
gcc-4.8: Hook in cross-darwin libc and binutils.
Let's finally hook everything into the existing cross-building
infrastructure. We're using --with-sysroot instead of --with-headers
here, because the XCode SDK contains references to /usr/lib.

I've tried to patch those references, but unfortunately (at least with
install_name_tool) it isn't possible to change those refernces in stub
dylibs.

So after bugging @tpoechtrager with annoying questions (thanks again), I
think my initial approach (patching the SDK itself and/or regenerating
the dylib stubs) was way to complicated so I ended up with this
implementation.

Also, I've added a condition to binutilsCross to use cctools if the libc
is set to libSystem. This might need some cleanups someday, mainly to
figure out how to properly bridge cctools and binutils.

So, as an example on how to cross-compile GNU Hello to Darwin, you can
use something like this:

(import <nixpkgs> {
  crossSystem = {
    config = "x86_64-apple-darwin13";
    arch = "x86_64";
    libc = "libSystem";
    platform = {};
  };
}).hello.crossDrv

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:44 +01:00
aszlig
5e565754ab
Add new package "xpwn" from @dborca's fork.
This really hase some nice utilities for coping with HFS+ and DMG
format. We're going to use it for extracting the xcode DMG, but it could
be used for more, even generating DMGs.

The reason I'm using the fork instead of the repository from
@planetbeing is thet the fork contains a few fixes, especially for
dealing with symlinks in HFS+ images.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:43 +01:00
Rickard Nilsson
773d886f51 libvirt: Clean up nix file, update meta 2014-03-12 08:27:05 +01:00
Vladimír Čunát
4a0d464384 glib_networking: big update, cleanup, meta added 2014-03-11 21:56:28 +01:00
Rickard Nilsson
28437226ae libvirt: Update from 1.2.0 to 1.2.2 2014-03-11 18:27:09 +01:00
Peter Simons
4c226fb88a haskell-hledger-web: jailbreak to fix build with recent versions of yesod 2014-03-11 17:33:09 +01:00
Peter Simons
d35e61913b haskell-ghcjs-codemirror: add version 0.0.0.1 2014-03-11 13:50:51 +01:00
Peter Simons
27247b0325 haskell-ghcjs-dom: add version 0.0.4 2014-03-11 13:50:51 +01:00
Peter Simons
b46aac7d79 haskell-vado: add version 0.0.1 2014-03-11 13:50:51 +01:00
Peter Simons
1e662766fb haskell-vcsgui: add version 0.0.2 2014-03-11 13:50:51 +01:00
Peter Simons
d0734f8aaa haskell-vcswrapper: add version 0.0.3 2014-03-11 13:50:50 +01:00
Peter Simons
902d57fe40 haskell-http-reverse-proxy: update to version 0.3.1 2014-03-11 13:50:50 +01:00
Peter Simons
55f2f3b465 haskell-alsa-mixer: update to version 0.2.0.1 2014-03-11 13:50:50 +01:00
Peter Simons
66729b6dea haskell-lens: remove obsolete version 3.10.2 2014-03-11 13:50:50 +01:00
Peter Simons
d765d5ddbb haskell-keter: update to version 1.2.0 2014-03-11 13:50:50 +01:00
Peter Simons
2273294b50 haskell-HaRe: update to version 0.7.1.4 2014-03-11 13:50:50 +01:00
Peter Simons
4139ea10be haskell-zip-archive: update to version 0.2.2 2014-03-11 13:50:50 +01:00
Peter Simons
46145143fc haskell-yesod-form: update to version 1.3.6 2014-03-11 13:50:50 +01:00
Peter Simons
f1120ff4b5 haskell-yesod-core: update to version 1.2.7 2014-03-11 13:50:50 +01:00
Peter Simons
e5cf206741 haskell-yesod-bin: update to version 1.2.7 2014-03-11 13:50:50 +01:00
Peter Simons
b48704974a haskell-yesod-auth: update to version 1.2.7 2014-03-11 13:50:50 +01:00
Peter Simons
ccac7c5dca haskell-x509: update to version 1.4.11 2014-03-11 13:50:50 +01:00
Peter Simons
5acfd49d17 haskell-warp: update to version 2.1.0 2014-03-11 13:50:50 +01:00
Peter Simons
def8957c30 haskell-warp-tls: update to version 2.0.3.1 2014-03-11 13:50:50 +01:00
Peter Simons
6455c132c3 haskell-wai: update to version 2.1.0 2014-03-11 13:50:50 +01:00
Peter Simons
0c478ecb40 haskell-wai-test: update to version 2.0.0.2 2014-03-11 13:50:49 +01:00
Peter Simons
8a8dbb1682 haskell-wai-handler-launch: update to version 2.0.1.1 2014-03-11 13:50:49 +01:00
Peter Simons
04db259288 haskell-wai-handler-fastcgi: update to version 2.0.0.1 2014-03-11 13:50:49 +01:00
Peter Simons
5e2c633a51 haskell-wai-extra: update to version 2.1.0 2014-03-11 13:50:49 +01:00
Peter Simons
7f7b9b0fc5 haskell-wai-app-static: update to version 2.0.0.3 2014-03-11 13:50:49 +01:00
Peter Simons
aee9e450ed haskell-vector-space-points: update to version 0.2 2014-03-11 13:50:49 +01:00
Peter Simons
d944d6a7f1 haskell-stm-conduit: update to version 2.2.2 2014-03-11 13:50:49 +01:00
Peter Simons
c43e1b9e91 haskell-scientific: update to version 0.2.0.2 2014-03-11 13:50:49 +01:00
Peter Simons
d80bad8c21 haskell-pipes-bytestring: update to version 2.0.1 2014-03-11 13:50:49 +01:00
Peter Simons
c843c7bb9b haskell-network-conduit: update to version 1.0.3 2014-03-11 13:50:49 +01:00