[Nix-dev] Re: [Nix-commits] SVN commit: nix - 19778 - simons - in nixpkgs/trunk/pkgs: tools/system/ipmitool top-level

Eelco Dolstra e.dolstra at tudelft.nl
Wed Feb 3 14:03:17 CET 2010


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/



More information about the nix-dev mailing list