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

24 lines
668 B
Nix
Raw Normal View History

2016-04-30 02:01:32 +02:00
{ stdenv, lib, fetchurl, gcc, staticBuild ? false }:
2014-10-17 01:06:57 +02:00
stdenv.mkDerivation rec {
2016-04-30 02:01:32 +02:00
name = "libiberty-${gcc.cc.version}";
2014-10-17 01:06:57 +02:00
2016-04-30 02:01:32 +02:00
inherit (gcc.cc) src;
2014-10-17 01:06:57 +02:00
postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
2016-04-30 02:01:32 +02:00
configureFlags = [ "--enable-install-libiberty" ] ++ lib.optional (!staticBuild) "--enable-shared";
2014-10-17 01:06:57 +02:00
2016-04-30 02:01:32 +02:00
postInstall = lib.optionalString (!staticBuild) ''
cp pic/libiberty.a $out/lib*/libiberty.a
2014-10-17 01:06:57 +02:00
'';
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 ];
2014-10-17 01:06:57 +02:00
platforms = platforms.unix;
};
}