nix-samples/hello-world-docker/default.nix
2024-03-17 17:33:12 +01:00

10 lines
292 B
Nix

# From https://nix.dev/tutorials/nixos/building-and-running-docker-images.html
{ pkgs ? import <nixpkgs> { }
, pkgsLinux ? import <nixpkgs> { system = "x86_64-linux"; }
}:
pkgs.dockerTools.buildImage {
name = "hello-docker";
config = {
Cmd = [ "${pkgsLinux.hello}/bin/hello" ];
};
}