query
On this page

makeStatic

pkgs.makeStatic

Docs pulled from | This Revision | 10 minutes ago


Puts all the other ones together


Noogle detected

Implementation

The following is the current implementation of this function.

makeStatic =
    stdenv:
    lib.foldl (lib.flip lib.id) stdenv (
      lib.optional stdenv.hostPlatform.isDarwin makeStaticDarwin

      ++ [
        makeStaticLibraries
        propagateBuildInputs
      ]

      # Apple does not provide a static version of libSystem or crt0.o
      # So we can’t build static binaries without extensive hacks.
      ++ lib.optional (!stdenv.hostPlatform.isDarwin) makeStaticBinaries
    );