diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-07-06 20:56:58 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-07-06 20:56:58 +0000 |
commit | 78a471979ee92c06dfbb0c5f925ea50334be4d2b (patch) | |
tree | 65a5e62ff4be85ac3e986d13f5fcc4ba72790511 /pkgs/os-specific/linux/udev | |
parent | eded0900aef23e6936be7e83b66e80983a0b02fa (diff) | |
download | nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar.gz nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar.bz2 nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar.lz nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar.xz nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.tar.zst nixpkgs-78a471979ee92c06dfbb0c5f925ea50334be4d2b.zip |
fix of fix. Udev builds with nixos-rebuild on x86_64 again
svn path=/nixpkgs/trunk/; revision=12288
Diffstat (limited to 'pkgs/os-specific/linux/udev')
-rw-r--r-- | pkgs/os-specific/linux/udev/default.nix | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/udev/default.nix b/pkgs/os-specific/linux/udev/default.nix index bef589233cf..1b347d706c6 100644 --- a/pkgs/os-specific/linux/udev/default.nix +++ b/pkgs/os-specific/linux/udev/default.nix @@ -1,18 +1,14 @@ {stdenv, fetchurl}: +if (stdenv.system != "x86_64-linux") then -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}"; +stdenv.mkDerivation { + name = "udev-124"; - src = if version == "124" then - fetchurl { + src = 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 = '' @@ -33,3 +29,30 @@ stdenv.mkDerivation rec { description = "Udev manages the /dev filesystem"; }; } +else +# for now svn revision 10849 because this works fine with current dietlibc +# this should be fixed (maybe using klibc) or by patching udev somewhen + +stdenv.mkDerivation { + name = "udev-118"; + + src = 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 = '' + makeFlagsArray=(etcdir=$out/etc sbindir=$out/sbin usrbindir=$out/bin usrsbindir=$out/sbin mandir=$out/share/man INSTALL='install -c' DESTDIR=/) + ''; + + preInstall = '' + installFlagsArray=(udevdir=$TMPDIR/dummy) + ''; + + meta = { + homepage = http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html; + description = "Udev manages the /dev filesystem"; + }; +} |