From cb97c35267ffeb44d8b69dea6cf232d71f59a6f6 Mon Sep 17 00:00:00 2001
From: "Yury G. Kudryashov" <urkud.urkud@gmail.com>
Date: Mon, 28 Jan 2008 19:45:30 +0000
Subject: [PATCH] libunwind added

svn path=/nixpkgs/trunk/; revision=10345
---
 pkgs/development/libraries/libunwind/default.nix | 14 ++++++++++++++
 pkgs/top-level/all-packages.nix                  |  4 ++++
 2 files changed, 18 insertions(+)
 create mode 100644 pkgs/development/libraries/libunwind/default.nix

diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix
new file mode 100644
index 000000000000..52ed30c0ae96
--- /dev/null
+++ b/pkgs/development/libraries/libunwind/default.nix
@@ -0,0 +1,14 @@
+args: with args;
+stdenv.mkDerivation rec {
+	name = "libunwind-0.98.6";
+	src = fetchurl {
+		url = "http://download.savannah.nongnu.org/releases/libunwind/${name}.tar.gz";
+		sha256 = "1qfxqkyx4r5dmwajyhvsyyl8zwxs6n2rcg7a61fgfdfp0gxvpzgx";
+	};
+	configureFlags = "--enable-shared --disable-static";
+	meta = {
+		homepage = http://www.nongnu.org/libunwind;
+		description = "The primary goal of this project is to define a portable
+		and efficient API to determine the call-chain of a program";
+	};
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 4a3104b3d439..64738d73ca2e 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2305,6 +2305,10 @@ rec {
     inherit fetchurl stdenv;
   };
 
+  libunwind = import ../development/libraries/libunwind {
+    inherit fetchurl stdenv;
+  };
+
   libvorbis = import ../development/libraries/libvorbis {
     inherit fetchurl stdenv libogg;
   };