nix-samples/hello-world-docker/default.nix

10 lines
292 B
Nix
Raw Permalink Normal View History

2024-03-17 17:33:12 +01:00
# 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" ];
};
}