AFAIU in https://github.com/poscat0x04/hls-nix/blob/master/default.nix the source argument is configurable by the call site, however this source is specific to this project: it's a set containing haskell-nix as well as the different HLS sources (0.1 and master).
Users (e.g. me :smile: I encountered this issue this week-end) can't (easily) pass a custom Haskell.nix. E.g. we use a specific version of Haskell.nix in my project, and we don't want to use another version (which would recompile a lot of stuff) just for HLS.
In the same spirit, users can't (easily) pass a custom Nixpkgs, as default.nix forces to use nixpkgs-2003 from Haskell.nix
Proposal: make at least haskell.nix and Nixpkgs arguments in default.nix, e.g.:
AFAIU in https://github.com/poscat0x04/hls-nix/blob/master/default.nix the
source
argument is configurable by the call site, however thissource
is specific to this project: it's a set containinghaskell-nix
as well as the different HLS sources (0.1 and master).default.nix
forces to usenixpkgs-2003
from Haskell.nixProposal: make at least haskell.nix and Nixpkgs arguments in
default.nix
, e.g.:With such arguments:
Note: I am still fresh in the Nix world, so my proposal or code may be wrong/have flaws that I'm not aware of!