File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 6060 } )
6161 // {
6262 format = treefmt . config . build . check self ;
63+ fetcher-assert-npm =
64+ let
65+ # force download debian for consistent hash across systems
66+ binaryTargetBySystem = {
67+ x86_64-linux = "debian" ;
68+ aarch64-linux = "debian" ;
69+ x86_64-darwin = "debian" ;
70+ aarch64-darwin = "debian" ;
71+ } ;
72+ prisma-legacy = prisma-factory {
73+ inherit pkgs binaryTargetBySystem ;
74+ hash = "sha256-R9PG286KQTbzF0r/PPcShUkMiYam2prRh/JICjmhCZA=" ;
75+ } ;
76+ prisma-new =
77+ lockName : lockFile :
78+ prisma-factory {
79+ inherit pkgs binaryTargetBySystem ;
80+ hash = "sha256-R9PG286KQTbzF0r/PPcShUkMiYam2prRh/JICjmhCZA=" ;
81+ ${ lockName } = lockFile ;
82+ } ;
83+ in
84+ assert
85+ ( prisma-legacy . fromNpmLock ./npm/package-lock.json ) . env
86+ == ( prisma-new "npmLock" ./npm/package-lock.json ) . env ;
87+ pkgs . hello ;
6388 } ;
6489 packages . default =
6590 ( prisma-factory {
You can’t perform that action at this time.
0 commit comments