From f75be37d703f64202bf093f45be1e20cf948f54e Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 1 Jan 2008 15:44:27 +0000 Subject: [PATCH] Returned elfutils 0.127 as an option.. I do not see why ltrace fails with 0.131. Will investigate after the merge. svn path=/nixpkgs/trunk/; revision=10041 --- pkgs/development/tools/misc/elfutils/0.127.nix | 9 +++++++++ .../tools/misc/elfutils/{default.nix => 0.131.nix} | 4 ++-- pkgs/top-level/all-packages.nix | 13 +++++++++---- 3 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/tools/misc/elfutils/0.127.nix rename pkgs/development/tools/misc/elfutils/{default.nix => 0.131.nix} (81%) diff --git a/pkgs/development/tools/misc/elfutils/0.127.nix b/pkgs/development/tools/misc/elfutils/0.127.nix new file mode 100644 index 000000000000..2337ebbdbd08 --- /dev/null +++ b/pkgs/development/tools/misc/elfutils/0.127.nix @@ -0,0 +1,9 @@ +args: with args; + +stdenv.mkDerivation { + name = "elfutils-"+version; + src = fetchurl { + url = http://nix.cs.uu.nl/dist/tarballs/elfutils-0.127.tar.gz; + sha256 = "12n3h5r3c24a6l2wxz0w2dqq072bvgms0dzckivrwp5vdn22lpdv"; + }; +} diff --git a/pkgs/development/tools/misc/elfutils/default.nix b/pkgs/development/tools/misc/elfutils/0.131.nix similarity index 81% rename from pkgs/development/tools/misc/elfutils/default.nix rename to pkgs/development/tools/misc/elfutils/0.131.nix index 1966acff17e6..5efe046493db 100644 --- a/pkgs/development/tools/misc/elfutils/default.nix +++ b/pkgs/development/tools/misc/elfutils/0.131.nix @@ -1,7 +1,7 @@ -{stdenv, fetchurl}: +args: with args; stdenv.mkDerivation { - name = "elfutils-0.131"; + name = "elfutils-"+version; src = fetchurl { url = http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.131.orig.tar.gz; sha256 = "0vqfjpcv81m3q0gsk78qykakhz9rbfwd65i4zsi03xr2lrk9ayll"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac7fef880a5d..429a75297063 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1409,10 +1409,15 @@ rec { inherit fetchurl stdenv replace; }; - elfutils = import ../development/tools/misc/elfutils { - inherit fetchurl stdenv; + elfutilsFun = lib.sumArgs + (selectVersion ../development/tools/misc/elfutils) { + inherit fetchurl stdenv; }; + elfutils = elfutilsFun { + version = "0.131"; + } null; + epm = import ../development/tools/misc/epm { inherit fetchurl stdenv rpm; }; @@ -1493,8 +1498,8 @@ rec { }; ltrace = import ../development/tools/misc/ltrace { - inherit fetchurl stdenv builderDefs stringsWithDeps lib - elfutils; + inherit fetchurl stdenv builderDefs stringsWithDeps lib; + elfutils = elfutilsFun {version = "0.127";} null; }; mk = import ../development/tools/build-managers/mk {