let pkgs = import { }; 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