-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdefault.nix
More file actions
19 lines (17 loc) · 827 Bytes
/
default.nix
File metadata and controls
19 lines (17 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ haskellPackages
, pkgs ? haskellPackages.callPackage ({pkgs}: pkgs) {}
, postgresql ? pkgs.postgresql
, ...
}: {
gargoyle = haskellPackages.callCabal2nix "gargoyle" ./gargoyle {};
gargoyle-postgresql = pkgs.haskell.lib.overrideCabal
(haskellPackages.callCabal2nix "gargoyle-postgresql" ./gargoyle-postgresql {})
(drv: {
testSystemDepends = (drv.testSystemDepends or []) ++ [ (if postgresql == null then pkgs.postgresql else postgresql) ];
});
gargoyle-postgresql-nix = haskellPackages.callCabal2nix "gargoyle-postgresql-nix" ./gargoyle-postgresql-nix {
# TODO: libpq will become standalone in https://github.com/NixOS/nixpkgs/pull/359659
libpq = postgresql;
};
gargoyle-postgresql-connect = haskellPackages.callCabal2nix "gargoyle-postgresql-connect" ./gargoyle-postgresql-connect {};
}