1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

fix: x86_64 doesn't build recent udev (124) with dietlibc, added if to use the older one in this case

svn path=/nixpkgs/trunk/; revision=12269
This commit is contained in:
Marc Weber 2008-07-05 23:19:38 +00:00
parent 95cf51997c
commit 54a0caa67f

View file

@ -1,13 +1,18 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "udev-124";
stdenv.mkDerivation rec {
# unfortunately 124 does not build with dietlibc on x64
version = if ( stdenv.system == "x86_64-linux") then "118" else "124";
name = "udev-${version}";
src = fetchurl {
src = if version == "124" then
fetchurl {
url = mirror://kernel/linux/utils/kernel/hotplug/udev-124.tar.bz2;
sha256 = "0hjmg82ivczm76kg9gm7x0sfji69bwwjbbfycfcdpnfrc13935x4";
} else fetchurl {
url = mirror://kernel/linux/utils/kernel/hotplug/udev-118.tar.bz2;
sha256 = "1i488wqm7i6nz6gidbkxkb47hr427ika48i8imwrvvnpg1kzhska";
};
# "DESTDIR=/" is a hack to prevent "make install" from trying to
# mess with /dev.
preBuild = ''