瀏覽代碼

fix(nix): nest resume attr under system attr

rather than vice-versa.

This corrects the error "error: 'resume' is not a valid system type"
raised when running `nix flake check`.
Matt Schreiber 2 年之前
父節點
當前提交
6b31003cd0
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      flake.nix

+ 6 - 2
flake.nix

@@ -30,9 +30,13 @@
           make OUT_DIR="$out"
         '';
     in {
-      packages.resume = perSystem (system: buildResumeFor system);
+      packages = perSystem (system: {
+        resume = buildResumeFor system;
+      });
+
       devShell =
         perSystem (system: import ./shell.nix { pkgs = pkgsFor system; });
-      defaultPackage = perSystem (system: self.packages.resume.${system});
+
+      defaultPackage = perSystem (system: self.packages.${system}.resume);
     };
 }