Skip to content

Commit d83828c

Browse files
committed
fix: specify correct hash for each system
1 parent 9c5315d commit d83828c

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

flake.nix

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,15 @@
8686
== (prisma-new "npmLock" ./npm/package-lock.json).env;
8787
pkgs.hello;
8888
prisma-next =
89-
let
90-
# force download debian for consistent hash across systems
91-
binaryTargetBySystem = {
92-
x86_64-linux = "debian";
93-
aarch64-linux = "debian";
94-
x86_64-darwin = "debian";
95-
aarch64-darwin = "debian";
96-
};
97-
in
9889
(self.lib.prisma-factory {
99-
inherit pkgs binaryTargetBySystem;
90+
pkgs = pkgs;
10091
_commit = "next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513";
101-
hash = "sha256-JWX+N/mmp9uJLcv4XFbQ3yg34fFf2BLIUpOLrrfTjEM=";
92+
hash = {
93+
x86_64-linux = "sha256-JWX+N/mmp9uJLcv4XFbQ3yg34fFf2BLIUpOLrrfTjEM=" ;
94+
x86_64-darwin = "sha256-WNwFOoeDOebbfAh4y/NvZCyE9otaJdg2hHb4ifEFD+Y=";
95+
aarch64-linux = "sha256-f9FuPZaGx0FwKo4pA9f8g82MTcAzYLwWslxjb7oqk6E=";
96+
aarch64-darwin = "sha256-NMI+JcP3epBO3V37D19TDgzivMnPekgrYqUrXB6qNV0=";
97+
}.${pkgs.system};
10298
}).package;
10399
};
104100
packages.default =

0 commit comments

Comments
 (0)