aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 5691a41c4431133b0211359e3f597e5739209022 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 { system ? builtins.currentSystem }:

 let
    sources = import ./nix/sources.nix;
    pkgs = import sources.nixpkgs { };
    whirl = import ./whirl.nix { inherit sources pkgs; };

    name = "Whirlsplash/whirl";
    tag = "latest";

in pkgs.dockerTools.buildLayeredImage {
    inherit name tag;
    contents = [ whirl ];

    config = {
        Cmd = [ "/bin/whirl" ];
        Env = [ ];
        WorkingDir = "/";
    };
}