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
nix-shell --pure usage doesn't work for the full niv API? #222
Comments
|
I had the same issue, and |
|
Wops, missed the first notification! Yes, I guess niv should depend on |
|
@nmattia What are you trying to override, specifically? I know a couple of things about overriding haskell packages in nixpkgs Example: let
sources = import ./nix/sources.nix;
in
{ compiler ? "ghc883"
, pkgs ? import sources.nixpkgs { }
}:
let
inherit (pkgs.lib.trivial) flip pipe;
inherit (pkgs.haskell.lib) appendPatch appendConfigureFlags;
haskellPackages = pkgs.haskell.packages.${compiler}.override {
overrides = hpNew: hpOld: {
hakyll =
pipe
hpOld.hakyll
[ (flip appendPatch ./hakyll.patch)
(flip appendConfigureFlags [ "-f" "watchServer" "-f" "previewServer" ])
];
# ...
};
};
in # ...Also, lots of good stuff here for Haskell & Nix: https://github.com/Gabriel439/haskell-nix |
Hi, I am so grateful for this tool and am soon to write some blog posts that detail using it for various types of projects!
Some notes before my question:
nix-shell --packages niv --run "niv ..."But when I use
nix-shell --pure(a pure environment), I run into this issue:The same thing happens if I go into interactive shell mode (naturally):
However, if I use the
dropcommand, that works fine (given I've added a package in a different way):Can you please help me figure out what I'm doing wrong here, or if this is an issue?
Here's what my example
release.nixlooks like for a haskell project:If I add
pkgs.nixtobuildInputs,buildInputs = with haskellPackages; [ cabal-install hlint ghcid ormolu niv + pkgs.nix ];I get this response when running
nix-shell --pure@utdemir mentioned that something like
cacertmight need to be something that is a runtime dependency forniv, and addingpkgs.nixandpkgs.cacertto thebuildInputsgot it working.In short, do
pkgs.cacertand something else need to be runtime dependencies?The text was updated successfully, but these errors were encountered: