easy-purescript-nix icon indicating copy to clipboard operation
easy-purescript-nix copied to clipboard

fix expressions

Open justinwoo opened this issue 4 years ago • 3 comments

https://github.com/justinwoo/easy-purescript-nix/blob/5716cd791c999b3246b4fe173276b42c50afdd8d/default.nix#L119

somewhere in this body causes all of the derivations to be built it seems, which isn't that slow because we do not allow derivations that try to build from source (this was explained a long time ago by me and can be read in the README)

however, i still do not like wasting disk space and time to build derivations for shit i never want to use

these should be fixed at some point to facilitate nix being able to lazily evaluate instead of having to build all of the derivations.

justinwoo avatar Aug 26 '21 11:08 justinwoo

Does purs-tidy count as being built from source using spago2nix? Because of the bundling, it seems the slowest to me. It's released to NPM as well. The other NPM packages in this repository had NPM dependencies, but purs-tidy did not.

A large hammer solution could be a Cachix cache with permissions for CI to push to it that users can cachix use easy-purescript. But adding several caches to your system is also kinda slow to ping/check.

toastal avatar Aug 26 '21 12:08 toastal

it would be better to use actual npm published artifacts for purs-tidy if possible

and i do not want to use cachix in this project. anything requiring a build cache is against what i want out of this project

justinwoo avatar Aug 26 '21 13:08 justinwoo

Understandable. #163 covers purs-tidy. The rest of the stuff... well I'd like to know more about the laziness and could learn a lot from a diff.

toastal avatar Aug 26 '21 13:08 toastal