summary refs log tree commit diff
path: root/pkgs/development/libraries/libiberty
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2014-10-17 03:06:57 +0400
committerNikolay Amiantov <ab@fmap.me>2014-11-08 02:54:41 +0300
commit3978aca3541a5e212a13263a2e00cbf0a9200c45 (patch)
tree7f6fe576a4b23e7b04b03b900201cf0e2467a5c4 /pkgs/development/libraries/libiberty
parent064af530635c3bb26bc4f1bd958eed56f0b9dc0e (diff)
downloadnixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar.gz
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar.bz2
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar.lz
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar.xz
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.tar.zst
nixpkgs-3978aca3541a5e212a13263a2e00cbf0a9200c45.zip
libiberty: add package
Diffstat (limited to 'pkgs/development/libraries/libiberty')
-rw-r--r--pkgs/development/libraries/libiberty/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libiberty/default.nix b/pkgs/development/libraries/libiberty/default.nix
new file mode 100644
index 00000000000..b4c256fb340
--- /dev/null
+++ b/pkgs/development/libraries/libiberty/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  version = "4.8.3";
+  name = "libiberty-${version}";
+
+  src = fetchurl {
+    url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
+    sha256 = "07hg10zs7gnqz58my10ch0zygizqh0z0bz6pv4pgxx45n48lz3ka";
+  };
+
+  postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
+
+  enable_shared = 1;
+
+  installPhase = ''
+    mkdir -p $out/lib
+    cp pic/libiberty.a $out/lib/libiberty_pic.a
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://gcc.gnu.org/;
+    license = licenses.lgpl2;
+    description = "Collection of subroutines used by various GNU programs";
+    maintainers = maintainers.abbradar;
+    platforms = platforms.unix;
+  };
+}