1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/libraries/libiberty/default.nix

24 lines
668 B
Nix
Raw Normal View History

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