nixpkgs/pkgs/development/libraries/libiberty/default.nix

29 lines
689 B
Nix
Raw Normal View History

2014-10-17 01:06:57 +02:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2015-02-02 18:30:32 +01:00
version = "4.8.4";
2014-10-17 01:06:57 +02:00
name = "libiberty-${version}";
src = fetchurl {
url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
2015-02-02 18:30:32 +01:00
sha256 = "15c6gwm6dzsaagamxkak5smdkf1rdfbqqjs9jdbrp3lbg4ism02a";
2014-10-17 01:06:57 +02:00
};
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;
};
}