I tried to bump the pinned Racket version in racket2nix from 7.1 to 7.2, and I ran into issues:
raco setup: 3 making: <pkgs>/nix open-output-file: cannot open output file path: /nix/store/qal0s2mf9m1fdrpd1azpm5aiq6fwfdw1-racket-minimal-7.2-rackunit-lib-env/share/racket/pkgs/rackunit-lib/rackunit/private/compiled/tmp15504632011550463201383 system error: Permission denied; errno=13 compilation context...: /nix/store/dzyn6syybdccglpdc8c4lh0j2abd37ar-racket2nix-stage0-env/share/racket/pkgs/nix/racket2nix-test.rkt context...: /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/racket/private/more-scheme.rkt:261:28 /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/racket/file.rkt:236:0: call-with-atomic-output-file22 /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/compiler/private/cm-minimal.rkt:414:0: compile-zo*58 /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/compiler/private/cm-minimal.rkt:705:15 /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/compiler/private/cm-minimal.rkt:677:0: maybe-compile-zo77 /nix/store/pmg2cn7c7xc9kkg994m8b94zcf89ykmq-racket-minimal-7.2/share/racket/collects/compiler/private/cm-minimal.rkt:926:0: compile-root89 What's happening here is that rackunit-lib is already installed and compiled, and stored in the read-only Nix store. When racket2nix-test dynamic-requires rackunit, compile-root decides that it needs to compile it again, and tries to write to the read-only store. The .rkt and .zo both have the timestamp 1, as in one second into the Unix epoch, as do all the files in the store, for reproducibility. I'm guessing there is some logic in cm-minimal.rkt that accidentally changed from <= or > to < or >=, but I find the code a bit hard to untangle at a glance, and I'm hoping that someone who actually touched it will just go "Oh, that's right, that's this frob over here". -- /c -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

