forked from obsidiansystems/gargoyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
18 lines (18 loc) · 896 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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 = pkgs.haskell.lib.overrideCabal
(haskellPackages.callCabal2nix "gargoyle-postgresql-nix" ./gargoyle-postgresql-nix {})
(drv: {
librarySystemDepends = (drv.librarySystemDepends or []) ++ [ (if postgresql == null then pkgs.postgresql else postgresql) ];
});
gargoyle-postgresql-connect = haskellPackages.callCabal2nix "gargoyle-postgresql-connect" ./gargoyle-postgresql-connect {};
}