-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recommend use of haskellLib.packagesFromDirectory #55
Comments
Yes, I added that function :) I was planning to reuse it in this guide once I updated it to use (and pin to) a newer |
Oh, I see you in the commit history 😄 I think this function doesn't drop in as I expected, can I ask for your advice? I have the following config = {
packageOverrides = pkgs: rec {
haskellPackages =
let
generatedOverrides = pkgs.haskell.lib.packagesFromDirectory { directory = "./nix"; };
manualOverrides = haskellPackagesNew: haskellPackagesOld: {};
in
pkgs.haskellPackages.override {
overrides =
pkgs.lib.composeExtensions generatedOverrides manualOverrides;
};
};
}; but it generates the error
How can I get it to accept a relative path, like |
@siddharthist: I believe you need to remove the quotes around |
Ah, as it says in the nixpkgs manual, such paths are made absolute at parse time: https://nixos.org/nix/manual/#idm140737318050944 |
This function seems to do the same work as some of the code here: https://github.com/Gabriel439/haskell-nix/blob/master/project4/README.md. Is there overlap that could be reduced here?
The text was updated successfully, but these errors were encountered: