blob: 1f5ab2cf0969b8d00ae803c2d1267ea34d42214e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ stdenv, lib, fetchurl, gcc, staticBuild ? false }:
stdenv.mkDerivation rec {
name = "libiberty-${gcc.cc.version}";
inherit (gcc.cc) src;
postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
configureFlags = [ "--enable-install-libiberty" ] ++ lib.optional (!staticBuild) "--enable-shared";
postInstall = lib.optionalString (!staticBuild) ''
cp pic/libiberty.a $out/lib*/libiberty.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;
};
}
|