query
On this page

buildNixShellImage

pkgs.dockerTools.buildNixShellImage

Docs pulled from | This Revision | about 2 hours ago


Tests: nixos/tests/docker-tools-nix-shell.nix


Noogle detected

Implementation

The following is the current implementation of this function.

buildNixShellImage = { drv, compressor ? "gz", ... }@args:
    let
      stream = streamNixShellImage (builtins.removeAttrs args ["compressor"]);
      compress = compressorForImage compressor drv.name;
    in
    runCommand "${drv.name}-env.tar${compress.ext}"
      {
        inherit (stream) imageName;
        passthru = { inherit (stream) imageTag; };
        nativeBuildInputs = compress.nativeInputs;
      } "${stream} | ${compress.compress} > $out";