corpus

Log | Files | Refs | README | LICENSE

commit 3ba41c464f9b3c51839973a95f787527ff847665
parent 99a8e5cbc153ff87ec8e2f8f0f2f98922d05baf8
Author: mtmn <miro@haravara.org>
Date:   Sat,  6 Jun 2026 21:15:04 +0200

feat: add container build to flake.nix

Diffstat:
Mflake.nix | 12+++++++++++-
Mjustfile | 2+-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -173,6 +173,13 @@ --chdir "$out/lib/corpus" ''; }; + dockerImage = pkgs.dockerTools.buildLayeredImage { + name = "corpus"; + tag = corpus.version; + contents = [corpus]; + extraCommands = "mkdir -p tmp"; + config.Cmd = ["${corpus}/bin/corpus-server"]; + }; in { devShells.${system}.default = pkgs.mkShell { name = "corpus"; @@ -187,6 +194,9 @@ ]; }; - packages.${system}.default = corpus; + packages.${system} = { + default = corpus; + container = dockerImage; + }; }; } diff --git a/justfile b/justfile @@ -74,7 +74,7 @@ check: statix check . # Manage the container image (build, load, push) -container command: +oci command: @if [ "{{ command }}" = "build" ]; then \ nix build .#container; \ elif [ "{{ command }}" = "load" ]; then \