printerfacts/default.nix

20 lines
420 B
Nix
Raw Normal View History

2020-05-13 20:38:16 +00:00
{ system ? builtins.currentSystem }:
let
sources = import ./nix/sources.nix;
2020-05-15 13:16:16 +00:00
pkgs = import <nixpkgs> { };
2020-05-13 20:38:16 +00:00
printerfacts = import ./printerfacts.nix { inherit pkgs sources; };
2020-05-15 13:16:16 +00:00
name = "xena/printerfacts-warp";
2020-05-13 20:38:16 +00:00
tag = "latest";
in pkgs.dockerTools.buildLayeredImage {
inherit name tag;
contents = [ printerfacts ];
config = {
2020-05-15 13:16:16 +00:00
Cmd = [ "${printerfacts}/bin/printerfacts" ];
2020-05-13 20:38:16 +00:00
WorkingDir = "/";
};
}