nixpkgs/docker/minica.nix

23 lines
404 B
Nix
Raw Normal View History

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