mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
29 lines
699 B
Nix
29 lines
699 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "4.8.4";
|
|
name = "libiberty-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gcc/gcc-${version}/gcc-${version}.tar.bz2";
|
|
sha256 = "15c6gwm6dzsaagamxkak5smdkf1rdfbqqjs9jdbrp3lbg4ism02a";
|
|
};
|
|
|
|
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 = with maintainers; [ abbradar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|