-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.nix
More file actions
34 lines (33 loc) · 877 Bytes
/
default.nix
File metadata and controls
34 lines (33 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ nixpkgsSrc ? <nixpkgs>
}:
with builtins;
let
haskellNix = import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/a9efc0ae3a607eaebc6e841ca3960134e9034077.tar.gz") {};
pkgs = import nixpkgsSrc haskellNix.nixpkgsArgs;
project = pkgs.haskell-nix.cabalProject {
name = "composite";
src = ./.;
cabalProject = readFile ./cabal.project;
compiler-nix-name = "ghc925";
index-state = "2023-12-01T00:00:00Z";
modules = [
{
packages.postgresql-libpq = {
preConfigure = ''
export PATH="${pkgs.pkg-config}/bin:$PATH"
'';
flags."use-pkg-config" = true;
};
}
];
};
shell = project.shellFor {
tools = {
cabal = "3.10.1.0";
};
nativeBuildInputs = [
pkgs.pkg-config
];
exactDeps = true;
};
in { inherit project shell; }