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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
797 B
Nix
Raw Normal View History

{ lib, stdenv, buildPackages
, staticBuild ? stdenv.hostPlatform.isStatic
}:
let inherit (buildPackages.buildPackages) gcc; in
2014-10-16 23:06:57 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2020-05-07 06:20:18 +00:00
pname = "libiberty";
version = "${gcc.cc.version}";
2014-10-16 23:06:57 +00:00
2016-04-30 00:01:32 +00:00
inherit (gcc.cc) src;
2014-10-16 23:06:57 +00:00
2017-10-14 15:30:59 +00:00
outputs = [ "out" "dev" ];
2014-10-16 23:06:57 +00:00
postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
2017-10-14 15:30:59 +00:00
configureFlags = [ "--enable-install-libiberty" ]
++ lib.optional (!staticBuild) "--enable-shared";
2014-10-16 23:06:57 +00:00
postInstall = lib.optionalString (!staticBuild) ''
2016-04-30 00:01:32 +00:00
cp pic/libiberty.a $out/lib*/libiberty.a
2014-10-16 23:06:57 +00:00
'';
meta = with lib; {
homepage = "https://gcc.gnu.org/";
2014-10-16 23:06:57 +00:00
license = licenses.lgpl2;
description = "Collection of subroutines used by various GNU programs";
2017-10-14 15:30:59 +00:00
maintainers = with maintainers; [ abbradar ericson2314 ];
2014-10-16 23:06:57 +00:00
platforms = platforms.unix;
};
}