hoc/docker.nix.bak
Valentin Brandl b1bce024de
add
2020-03-18 18:14:32 +01:00

22 lines
378 B
Nix

let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
hoc = callPackage ./default.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildImage {
name = "vbrandl/hits-of-code";
tag = hoc.version;
contents = [ pkg ];
config = {
Cmd = [ "/bin/hoc" ];
WorkingDir = "/";
};
};
in dockerImage hoc