Hi,
Peter Simons wrote:
> pkgs/tools/system/ipmitool: added optional support for generating statically
> linked binaries
Rather than add a "static" option to every package that one might want to build
statically (i.e., all of them), you should have a look at the
`makeStaticBinaries' stdenv adapter. Then you can just call a function like
ipmitool with a stdenv that builds static binaries:
ipmitoolStatic = import ../tools/system/ipmitool {
stdenv = makeStaticBinaries stdenv;
inherit fetchurl openssl;
};
(Maybe makeStaticBinaries should also set AM_LDFLAGS=-all-static, which it
doesn't currently do.)
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev