nixpkgs/docker/moonplus.nix

21 lines
396 B
Nix
Raw Normal View History

2020-02-06 23:33:12 +00:00
{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { inherit system; };
callPackage = pkgs.lib.callPackageWith pkgs;
moonplus = callPackage ../pkgs/moonplus { };
dockerImage = pkg:
pkgs.dockerTools.buildImage {
name = pkg.name;
tag = "latest";
contents = [ pkg ];
2020-03-15 13:24:55 +00:00
config = { Cmd = [ "/bin/${pkg.name}" ]; };
2020-02-06 23:33:12 +00:00
};
in dockerImage moonplus