1 { lib, stdenv, buildPackages
2 , staticBuild ? stdenv.hostPlatform.isStatic
5 let inherit (buildPackages.buildPackages) gcc; in
9 version = "${gcc.cc.version}";
13 outputs = [ "out" "dev" ];
15 postUnpack = "sourceRoot=\${sourceRoot}/libiberty";
17 configureFlags = [ "--enable-install-libiberty" ]
18 ++ lib.optional (!staticBuild) "--enable-shared";
20 postInstall = lib.optionalString (!staticBuild) ''
21 cp pic/libiberty.a $out/lib*/libiberty.a
25 homepage = "https://gcc.gnu.org/";
26 license = licenses.lgpl2;
27 description = "Collection of subroutines used by various GNU programs";
28 maintainers = with maintainers; [ abbradar ericson2314 ];
29 platforms = platforms.unix;