Skip to content
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

haskellPackages.shellFor missing deps from .extend #40266

Closed
luigy opened this issue May 10, 2018 · 1 comment
Closed

haskellPackages.shellFor missing deps from .extend #40266

luigy opened this issue May 10, 2018 · 1 comment

Comments

@luigy
Copy link
Contributor

luigy commented May 10, 2018

Issue description

Steps to reproduce

$ cat default.nix 
with (import <nixpkgs> {});
with haskell.lib;
rec {
  hsPkgs =
    (haskellPackages.extend (packageSourceOverrides { foo = ./.; }))
      .extend (self: super: { foo = addBuildDepend super.foo self.groom; });
  hsShell = hsPkgs.shellFor {
    packages = p: [ p.foo ];
    withHoogle = false;
  };
}

$ cat foo.cabal
name: foo
version: 0.5.0
library
  build-depends:
      base

$ nix-shell -A hsPkgs.foo.env --run "ghc-pkg list | grep groom"
    groom-0.1.2.1

$ nix-shell -A hsShell --run "ghc-pkg list | grep groom"

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.15.16, NixOS, 18.03.git.2569e48 (Impala)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.0
  • channels(luigy): "nixpkgs-18.09pre139198.9d0b6b9dfc9"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@luigy
Copy link
Contributor Author

luigy commented May 10, 2018

cc @ElvishJerricco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant