Not sure how to solve non-Haskell dependency issue
Closed this issue · 1 comments
jerbaroo commented
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;
}stale commented
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.