try and fix deployment
diff-tag / dix (push) Successful in 6m40s
flake-check / flake-check (push) Successful in 4m26s
lint / lint (push) Failing after 1m49s

This commit is contained in:
flowey
2026-09-17 10:35:22 -05:00
parent c26a1fde31
commit 8551b8ad90
5 changed files with 31 additions and 13 deletions
+10 -1
View File
@@ -7,6 +7,8 @@
mtce.inputs.nixpkgs.follows = "nixpkgs";
microvm.url = "github:microvm-nix/microvm.nix";
microvm.inputs.nixpkgs.follows = "nixpkgs";
deploy-label.url = "path:./misc/deploy-label";
deploy-label.flake = false;
};
outputs =
@@ -15,6 +17,7 @@
nixpkgs,
mtce,
microvm,
deploy-label,
...
}:
let
@@ -23,6 +26,12 @@
pkgs = import nixpkgs { inherit system; };
flakeRev = self.shortRev or self.dirtyShortRev or "unknown";
deployLabel =
let
labelFile = "${deploy-label}/label";
raw = lib.removeSuffix "\n" (builtins.readFile labelFile);
in
if raw != "" then raw else null;
customPkgs = {
hopper-rs = pkgs.callPackage ./packages/hopper-rs.nix { };
@@ -56,7 +65,7 @@
specialArgsFor = hostName: {
hostInfo = hostInfoFor hostName;
inherit inputs customPkgs flakeRev;
inherit inputs customPkgs flakeRev deployLabel;
};
hostDefFor =