stackage2nix icon indicating copy to clipboard operation
stackage2nix copied to clipboard

Only regenerate `stackage` packages when needed

Open nc6 opened this issue 8 years ago • 0 comments

packages.nix need only be regenerated when the resolver changes (and if the user has made changes to packages-configuration.nix, regenerating when not needed is actively harmful), whereas default.nix might more frequent regeneration (when adding extra-packages, for example).

Simple solution: if packages.nix exists, only regenerate it if --derive-stackage is passed. This would also speed up runtime.

nc6 avatar Aug 16 '17 12:08 nc6