nixpkgs/pkgs/os-specific/linux
Lluís Batlle i Rossell 2aba922d30 My first attempt at getting cross compilers in nixpkgs.
My idea is to provide special stdenv expressions that will contain in the path
additional cross compilers. As most expressions for programs accept a stdenv parameter, 
we could substitute this parameter with the special stdenv, which will have a
generic builder that attempts the usual "--target=..." and can additionally
have an env variable like "cross" with the target architecture set.
So, finally we could have additional expressions like this:

bashRealArm = makeOverridable (import ../shells/bash) {
    inherit fetchurl bison;
    stdenv = stdenvCross "armv5tel-unknown-linux-gnueabi";
};

Meanwhile it does not work - I still cannot get the cross-gcc to build.

I think it does not fill the previous expressions with a lot of noise, so I
think it may be a good path to follow.

I only touched some files of the current stdenv: gcc-4.3, kernel headers
2.6.28, glibc 2.9, ...

I tried to use the gcc-cross-wrapper, that may be very outdated. Maybe I will
update it, or update the gcc-wrapper expression to make it fit the cross tools,
but meanwhile I even cannot build gcc, so I have not tested the wrapper.

This new idea on cross compiling is not similar to that of the
nixpkgs/branches/cross-compilation, which mostly added bare new expressions for
anything to be cross compiled, if I understood it correctly.

I cared not to break anything of the usual stdenv in all this work.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18343
2009-11-14 08:11:30 +00:00
..
915resolution * Until the modesetting branch of the i810 driver works, we're still 2007-03-06 00:12:43 +00:00
acpi * Cleaned up a lot of description fields that contained newlines. 2009-03-03 13:27:40 +00:00
acpid * Added acpid, a daemon that monitors ACPI events. 2009-02-10 23:12:18 +00:00
acpitool * Cleaned up a lot of description fields that contained newlines. 2009-03-03 13:27:40 +00:00
alsa-lib * Updated ALSA. 2009-10-30 15:05:13 +00:00
alsa-plugins pass jackaudio to alsaPlugins also adding convinient wrapper script 2009-09-21 15:55:26 +00:00
alsa-utils * Updated ALSA. 2009-10-30 15:05:13 +00:00
atheros big breaking change: renaming lib.getAttr to lib.attrByPath 2009-05-24 10:57:41 +00:00
aufs Reverting AUFS update 2009-07-16 11:39:03 +00:00
aufs2 Fix more problems with aufs2 2009-09-14 13:30:33 +00:00
aufs2-utils Fix aufs utilities for NixOS manual 2009-09-15 10:28:40 +00:00
autofs cleaned up and fixed autofs v5 2009-05-01 05:42:32 +00:00
blcr FullDepEntry -> fullDepEntry, PackEntry -> packEntry 2009-05-19 23:25:58 +00:00
bluez * Bluez 4.54. 2009-09-28 16:25:38 +00:00
bridge_utils Nix-expr style review 2008-01-31 10:41:04 +00:00
btrfsprogs * Urgh. 2009-10-02 15:15:18 +00:00
cpufrequtils svn path=/nixpkgs/branches/stdenv-updates/; revision=13971 2009-02-03 10:39:48 +00:00
cramfsswap update to 1.4.1 2008-03-03 21:37:55 +00:00
cryopid New version of cryopid. 2009-11-08 10:38:07 +00:00
cryptsetup Adding me as a maintainer, with a pair of packages. 2009-09-20 09:37:55 +00:00
davfs2 * added davfs2 1.4.1 2009-09-22 08:12:11 +00:00
device-mapper * Partially reverted r12554: don't build devicemapper and lvm2 with 2008-08-15 14:14:55 +00:00
dietlibc * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
directvnc Add directvnc. Not sure whether it works - for me it hangs, but I have known Radeon issues, it seems 2009-11-05 21:10:51 +00:00
dmidecode * dmidecode 2.10. 2009-08-11 20:43:39 +00:00
dmraid Adding dmraid 2009-09-20 08:38:30 +00:00
e2fsprogs * e2fsprogs 1.41.9. 2009-09-25 20:53:21 +00:00
e3cfsprogs New Ext3cow version with some bugs resolved. Updated ext3cow kernel-patch, e3cfsprogs and ext3cow-tools 2008-03-09 20:06:42 +00:00
eject * Eject 2.1.5. 2007-06-07 21:27:25 +00:00
exmap Add Exmap, a Linux-specific tool to examine process memory usage. 2008-09-12 20:00:00 +00:00
ext3cow-tools New Ext3cow version with some bugs resolved. Updated ext3cow kernel-patch, e3cfsprogs and ext3cow-tools 2008-03-09 20:06:42 +00:00
fbterm Updating fbterm 2009-10-27 23:49:59 +00:00
firmware Updating ipw2200 firmware from 3.0 to 3.1. 2009-10-14 21:56:45 +00:00
fuse * Latest ntfs-3g, FUSE. 2009-03-25 10:55:40 +00:00
fxload * fxload: make it work with recent kernels. 2008-06-20 16:08:03 +00:00
genext2fs * Rewrite all the SourceForge URLs to mirror://sourceforge/. 2007-08-27 13:01:33 +00:00
gw6c Gw6c tarball is now uncompessed.. Do not ask me why 2009-09-29 16:22:23 +00:00
hal Updating from trunk. 2009-11-13 19:19:34 +00:00
hdparm * hdparm 8.7. 2008-06-07 12:20:19 +00:00
hibernate hibernate: Fix impurities. 2008-04-01 17:31:31 +00:00
htop htop: updated to version 0.8.3 2009-09-22 19:37:18 +00:00
hwdata * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
ifplugd * Fix a bunch of URLs. 2007-09-11 10:15:07 +00:00
iproute * iproute2 updated to 2.6.29-1. 2009-07-23 21:34:53 +00:00
iptables * iptables updated to 1.4.4. 2009-07-23 18:16:24 +00:00
iputils svn path=/nixpkgs/branches/stdenv-updates/; revision=13971 2009-02-03 10:39:48 +00:00
iwlwifi * Put all packages that depend on a specific kernel (notably kernel 2008-05-22 12:01:24 +00:00
jfsrec Boost library reference change no longer needed 2009-09-29 04:30:28 +00:00
jfsutils * Fix some packages that broke because libuuid can be null on Darwin. 2009-10-08 13:07:56 +00:00
kbd * kbd updated to 1.15. 2009-06-05 17:16:14 +00:00
kernel Updating the logic to put the resulting kernel image into its store path. 2009-11-08 17:19:46 +00:00
kernel-headers My first attempt at getting cross compilers in nixpkgs. 2009-11-14 08:11:30 +00:00
kernel-headers-cross * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
klibc Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
kqemu KQemu needs perl to build 2009-09-12 06:11:21 +00:00
kudzu * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
kvm Adding kvm88, although without the patches kvm86 had for some nix advantages (samba, ...), 2009-11-09 11:55:23 +00:00
libcap * Merged the stdenv branch 2008-06-13 11:46:39 +00:00
libnscd * Fix URL. 2007-03-16 14:58:28 +00:00
libselinux * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
libsepol * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
libsmbios * Latest libsmbios. 2009-09-28 15:33:42 +00:00
libvolume_id * HAL 0.5.10. 2008-03-06 13:06:32 +00:00
lm_sensors * Latest lm_sensors. 2009-09-15 22:06:38 +00:00
lvm2 * Partially reverted r12554: don't build devicemapper and lvm2 with 2008-08-15 14:14:55 +00:00
mdadm * Added mdadm (raidtools replacement). 2007-01-10 21:47:03 +00:00
mingetty * mingetty 1.08. 2009-01-27 14:14:42 +00:00
module-init-tools * Module aggregator: use buildEnv, which is much faster because it 2009-04-20 19:13:40 +00:00
modutils * Rewrite all the kernel.org URLs to mirror://kernel/. 2007-08-27 13:59:40 +00:00
mount-cifs * Fixed the mount-cifs source URL (copied from the stdenv-branch). 2009-04-09 08:12:16 +00:00
ndiswrapper Added perl dependency to ndiswrapper 2008-06-15 17:30:34 +00:00
net-tools * Fix broken meta attributes. 2009-10-13 09:39:27 +00:00
nfs-utils * util-linux-ng: updated to 2.16. Don't build a separate mount 2009-08-11 20:57:29 +00:00
nss_ldap * Merged the stdenv branch 2008-06-13 11:46:39 +00:00
numactl numactl: Fix post-install. 2008-04-18 14:46:29 +00:00
nvidia-x11 * NVIDIA X11 driver updated to 190.42. 2009-10-29 13:47:44 +00:00
opengl/xorg-sys svn path=/nixpkgs/trunk/; revision=12090 2008-06-14 17:06:39 +00:00
ov511 * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
pam * Various PAM updates. 2009-02-18 11:40:32 +00:00
pam_console * Got rid of all --disable-static flags; they're redundant now. 2009-04-21 23:18:09 +00:00
pam_devperm * Added pam_devperm. 2007-04-07 19:29:59 +00:00
pam_ldap * Added openldap and pam_ldap. 2007-01-11 21:55:29 +00:00
pam_login * Various PAM updates. 2009-02-18 11:40:32 +00:00
pam_unix2 Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
pcmciautils pcmcia-utils: 2008-08-27 13:59:33 +00:00
pm-utils * Use /etc/pm for the configuration. 2009-09-26 17:09:51 +00:00
powertop bump powertop to 1.11 2009-03-09 13:53:48 +00:00
procps * Reverted r6713, r6711, r4623, r3660, r2237. There rewrote fetchurl 2007-08-24 12:32:36 +00:00
pwdutils * Rewrite all the kernel.org URLs to mirror://kernel/. 2007-08-27 13:59:40 +00:00
qc-usb * Rewrite all the SourceForge URLs to mirror://sourceforge/. 2007-08-27 13:01:33 +00:00
qemu-kvm * qemu-kvm 0.11.0. 2009-09-28 14:28:20 +00:00
radeontools Nix-expr style review 2008-01-31 10:41:04 +00:00
reiser4progs * Reiser4 stuff. 2008-02-10 17:38:36 +00:00
reiserfsprogs added compatibility patch making reiserfsck ignore -v flag 2008-08-10 12:41:53 +00:00
sdparm * sdparm: the previous URL was broken. 2009-04-16 12:23:53 +00:00
shadow * We don't need groups from shadow. 2006-11-28 15:45:41 +00:00
splashutils * Fix splashutils. 2009-04-22 23:13:21 +00:00
squashfs * mksquashfs needs pthread_cancel. 2009-06-10 13:29:12 +00:00
statifier Adding statifier, a tool to make pseudostatic binaries. Unfortunately, statified NixOS-built binaries segfault on Ubuntu.. 2009-07-09 21:34:29 +00:00
sysfsutils Add sysfsutils. 2008-07-25 15:53:23 +00:00
sysklogd sysklogd: upgraded to 1.5 2007-12-01 20:04:44 +00:00
syslinux * Rewrite all the kernel.org URLs to mirror://kernel/. 2007-08-27 13:59:40 +00:00
sysstat * sysstat 8.0.4.1. 2008-08-07 11:15:11 +00:00
sysvinit * Got rid of a lot of "postInstall=postInstall" and similar lines in 2009-04-23 13:31:10 +00:00
tcp-wrapper TCP Wrappers: Use the Debian patches. 2009-02-26 09:53:31 +00:00
tunctl Adding tunctl. I didn't know how to build the manpage, though. 2009-03-01 21:34:39 +00:00
uclibc Porting changes from stdenv-updates into this branch. 2009-11-08 00:32:12 +00:00
udev A case study in transitive overrides. WebKit needs fresh glib. This means it needs a whole slice of system built against glib-2.22.. Added overrides are generic enough, though. So the same way can be used to override everything. I have failed (so far?) to add mkOverridable into stdenv, though. 2009-10-06 05:43:51 +00:00
uml-utilities * Get rid of all references to nix.cs.uu.nl. 2008-11-14 16:57:19 +00:00
upstart * Oops, wrong version. 2009-10-30 18:13:08 +00:00
usbutils * usbutils updated to 0.84. 2009-08-11 20:48:56 +00:00
util-linux-ng A case study in transitive overrides. WebKit needs fresh glib. This means it needs a whole slice of system built against glib-2.22.. Added overrides are generic enough, though. So the same way can be used to override everything. I have failed (so far?) to add mkOverridable into stdenv, though. 2009-10-06 05:43:51 +00:00
wireless-tools pre17 -> pre21 2007-05-14 11:39:01 +00:00
wis-go7007 * wis-go7007: updated for Linux 2.6.26. 2008-08-21 07:43:38 +00:00
wpa_supplicant Modified WPA supplicant expression so that it includes an icon 2009-05-13 10:56:53 +00:00
xfsprogs * Fix some packages that broke because libuuid can be null on Darwin. 2009-10-08 13:07:56 +00:00
zen-kernel Enabling ipv6 at least as module in the zen5 arm kernel 2009-11-09 23:26:34 +00:00