isle/nix/garage/common-nix-system.patch

22 lines
578 B
Diff
Raw Permalink Normal View History

2024-12-15 14:33:47 +00:00
diff --git a/nix/common.nix b/nix/common.nix
index 1ad809bb..47a92038 100644
--- a/nix/common.nix
+++ b/nix/common.nix
@@ -1,4 +1,6 @@
-let
+{
+ system ? builtins.currentSystem,
+}: let
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
inherit (lock.nodes.flake-compat.locked) owner repo rev narHash;
@@ -8,7 +10,7 @@ let
sha256 = narHash;
};
- flake = (import flake-compat { system = builtins.currentSystem; src = ../.; });
+ flake = (import flake-compat { inherit system; src = ../.; });
in
rec {
pkgsSrc = flake.defaultNix.inputs.nixpkgs;