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

Not sure how to solve non-Haskell dependency issue #2294

Open
jerbaroo opened this issue Dec 13, 2024 · 0 comments
Open

Not sure how to solve non-Haskell dependency issue #2294

jerbaroo opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jerbaroo
Copy link

Perhaps consider this a documentation issue. I have tried each of the snippets in https://input-output-hk.github.io/haskell.nix/tutorials/pkg-map.html.

The issue is that the HDBC-sqlite3 Haskell package expects to find sqlite3, but in my nixpkgs it is known merely as sqlite:

       … while evaluating the option `packages.HDBC-sqlite3.components.library.libs':

       … while evaluating definitions from `/nix/store/kdba7yxld9fk2ds8yirq0w53g5ky1m1a-haskellNix-src/modules/plan.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: The Nixpkgs package set does not contain the package: sqlite3 (system dependency).
       You may need to augment the system package mapping in haskell.nix so that it can be found.

Here are my current nix files:

# packages.nix
let
  sources = import ./nix/sources.nix {};
  haskellNix = import sources.haskellNix {};
  pkgs = import haskellNix.sources.nixpkgs-unstable haskellNix.nixpkgsArgs;
in pkgs
# default.nix
let
  pkgs = import ./packages.nix;
in pkgs.haskell-nix.project {
  src = pkgs.haskell-nix.haskellLib.cleanGit {
    name = "advent";
    src = ./.;
  };
}
# shell.nix
let
  pkgs = import ./packages.nix;
  project = import ./default.nix;
in project.shellFor {
  exactDeps = true;
  buildInputs =  [ pkgs.ghcid ];
  tools = {
    cabal = "latest";
    haskell-language-server = "latest";
  };
  withHoogle = false;
}
@jerbaroo jerbaroo added the bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant