Skip to content

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

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

Closed
jerbaroo opened this issue Dec 13, 2024 · 1 comment
Closed

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

jerbaroo opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working wontfix

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
Copy link

stale bot commented Apr 13, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 13, 2025
hamishmack added a commit that referenced this issue Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix
Projects
None yet
Development

No branches or pull requests

1 participant