jeslie0 / mkSpagoDerivation

Reproducible PureScript projects with Nix
https://github.com/jeslie0/mkSpagoDerivation
MIT License
16 stars 1 forks source link

Notes #5

Open jamesdbrock opened 1 week ago

jamesdbrock commented 1 week ago

My notes from using mkSpagoDerivation:

Needed in flake.nix:

  nixConfig.sandbox = "relaxed";

Needed in ~/.config/nix.conf

experimental-features = nix-command flakes configurable-impure-env auto-allocate-uids
jeslie0 commented 1 week ago

I would be interested to see your example flake that requires having sandbox set to relaxed. I've not needed that when I've used this in my projects. I also only have nix-command and flakes enabled as experimental features.

I'm not sure what is causing you to have to add these settings. If we can figure it out, I will update the documentation to make it clearer.

jamesdbrock commented 1 week ago

It is totally possible that I did something wrong and didn't really need those settings. I will post here if I figure it out.

jamesdbrock commented 1 week ago

Anyway, whatever weird thing I'm doing, mkSpagoDerivation is working perfectly for me, so thank you.

jamesdbrock commented 1 week ago

I'm working on this PR, if you're really curious. https://github.com/rowtype-yoga/purescript-protobuf/pull/40