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

Missing dependency when using nix-build: servant-reflex #719

Open
rubenmoor opened this issue Jan 22, 2021 · 1 comment
Open

Missing dependency when using nix-build: servant-reflex #719

rubenmoor opened this issue Jan 22, 2021 · 1 comment

Comments

@rubenmoor
Copy link

I have a weird inconsistency where I encounter the following error only when using nix-build -A ghcjs.frontend:

Setup: Encountered missing dependencies:
servant-reflex -any

Building with cabal works fine:

nix-shell -A shells.ghcjs --run "cabal new-build all"

This is my slightly modified default.nix where I added servant-reflex as haskell-package-override:

# default.nix
{ system ? builtins.currentSystem, unstable ? import <nixos-unstable> {} } :
(import ./reflex-platform { inherit system; }).project ({pkgs, ...}: {
  useWarp = true;
  packages = {
    common = ./common;
    backend = ./backend;
    frontend = ./frontend;
  };

  shells = {
    ghc = ["common" "backend" "frontend"];
    ghcjs = ["common" "frontend"];
  };
  shellToolOverrides = ghc: super: {
    haskell-language-server = unstable.haskell-language-server;
  };
  overrides = self: super: {
    gerippe = self.callPackage ./gerippe {};
    mmorph = self.callHackage "mmorph" "1.1.3" {};
    servant-reflex = pkgs.fetchFromGitHub {
      owner = "imalsogreg";
      repo = "servant-reflex";
      rev = "master";
      sha256 = "0issnp95rnji3v9qifr0brypxsvmjkzanfq5lscj68lynnjv37g0";
    };
  };
})
@rubenmoor
Copy link
Author

rubenmoor commented Jan 22, 2021

As a workaround, I added servant-reflex as a local package (next to common) via git submodule.

I have no idea, though, what's going on. My other override-dependency, gerippe, does not cause any problem either.

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