use nom and nix-build
All checks were successful
Nix Build / nix build (push) Successful in 14s

This commit is contained in:
atagen 2025-07-20 15:36:43 +10:00
parent 51d501a68e
commit 6b4a286da4
2 changed files with 5 additions and 3 deletions

View file

@ -36,10 +36,11 @@ let do_build () =
let ( >|= ) = Fun.flip Result.map in
let tmpdir = Filename.temp_dir "meat-build" "" in
let build_target =
Unix.getenv "MEATS" ^ "#nixosConfigurations." ^ Unix.gethostname ()
^ ".config.system.build.toplevel"
Unix.getenv "MEATS" ^ "/entry.nix -A nixosConfigurations."
^ Unix.gethostname () ^ ".config.system.build.toplevel"
in
do_cmd @@ "nix build --out-link " ^ tmpdir ^ "/build " ^ build_target
do_cmd @@ "nix-build --log-format internal-json -v --out-link " ^ tmpdir
^ "/build " ^ build_target ^ " |& nom --json"
>>= fun () ->
do_cmd @@ "sudo nix-env --set -p /nix/var/nix/profiles/system " ^ tmpdir
^ "/build"

View file

@ -25,6 +25,7 @@ in
environment.systemPackages = [
cfg.package
pkgs.nh # for now..
pkgs.nix-output-monitor
];
};
}