printerfacts/default.nix

21 lines
446 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-07-09 20:47:14 +00:00
name = "xena/printerfacts";
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-07-09 22:19:03 +00:00
Env = [ "RUST_LOG=info" ];
2020-05-13 20:38:16 +00:00
WorkingDir = "/";
};
}