Skip to content

Commit 6c6dbc3

Browse files
authored
Merge pull request #50 from GuillaumedeVolpiano/develop
adding a pkgconfig-depends on libpq
2 parents e38b64b + 971aea6 commit 6c6dbc3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

default.nix

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
(drv: {
1010
testSystemDepends = (drv.testSystemDepends or []) ++ [ (if postgresql == null then pkgs.postgresql else postgresql) ];
1111
});
12-
gargoyle-postgresql-nix = pkgs.haskell.lib.overrideCabal
13-
(haskellPackages.callCabal2nix "gargoyle-postgresql-nix" ./gargoyle-postgresql-nix {})
14-
(drv: {
15-
librarySystemDepends = (drv.librarySystemDepends or []) ++ [ (if postgresql == null then pkgs.postgresql else postgresql) ];
16-
});
12+
13+
gargoyle-postgresql-nix = haskellPackages.callCabal2nix "gargoyle-postgresql-nix" ./gargoyle-postgresql-nix {
14+
# TODO: libpq will become standalone in https://github.com/NixOS/nixpkgs/pull/359659
15+
libpq = postgresql;
16+
};
17+
1718
gargoyle-postgresql-connect = haskellPackages.callCabal2nix "gargoyle-postgresql-connect" ./gargoyle-postgresql-connect {};
1819
}

gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ library
2929
, gargoyle >=0.1 && <0.2
3030
, gargoyle-postgresql >=0.2 && <0.3
3131
, which >=0.2 && <0.3
32-
32+
pkgconfig-depends:
33+
libpq
3334
hs-source-dirs: src
3435
default-language: Haskell2010
3536

0 commit comments

Comments
 (0)