Skip to content

Commit b8cacbe

Browse files
committed
fix: apparently incorrectly rebased changes
1 parent 52722b1 commit b8cacbe

File tree

3 files changed

+7
-28
lines changed

3 files changed

+7
-28
lines changed

nix/checks.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
self',
66
system,
77
pkgs,
8+
lib,
89
...
910
}:
1011
let

nix/ext/pgrouting.nix

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ let
5656

5757
cmakeFlags =
5858
[ "-DPOSTGRESQL_VERSION=${postgresql.version}" ]
59-
++ lib.optionals (stdenv.isDarwin && lib.versionAtLeast postgresql.version "16") [
60-
"-DCMAKE_MACOSX_RPATH=ON"
61-
"-DCMAKE_SHARED_MODULE_SUFFIX=.dylib"
62-
"-DCMAKE_SHARED_LIBRARY_SUFFIX=.dylib"
63-
];
59+
++ lib.optionals (stdenv.isDarwin && lib.versionAtLeast postgresql.version "16") [
60+
"-DCMAKE_MACOSX_RPATH=ON"
61+
"-DCMAKE_SHARED_MODULE_SUFFIX=.dylib"
62+
"-DCMAKE_SHARED_LIBRARY_SUFFIX=.dylib"
63+
];
6464

6565
preConfigure = lib.optionalString (stdenv.isDarwin && lib.versionAtLeast postgresql.version "16") ''
6666
export DLSUFFIX=.dylib
@@ -127,34 +127,12 @@ buildEnv {
127127
expectedFiles=${toString (numberOfVersions + 1)}
128128
actualFiles=$(ls -l $out/lib/lib${pname}*${postgresql.dlSuffix} | wc -l)
129129
130-
<<<<<<< HEAD
131130
if [[ "$actualFiles" != "$expectedFiles" ]]; then
132131
echo "Error: Expected $expectedFiles library files, found $actualFiles"
133132
echo "Files found:"
134133
ls -la $out/lib/*${postgresql.dlSuffix} || true
135134
exit 1
136135
fi
137-
=======
138-
#disable compile time warnings for incompatible pointer types only on macos and pg16
139-
NIX_CFLAGS_COMPILE = lib.optionalString (
140-
stdenv.isDarwin && lib.versionAtLeast postgresql.version "16"
141-
) "-Wno-error=int-conversion -Wno-error=incompatible-pointer-types";
142-
143-
cmakeFlags = [
144-
"-DPOSTGRESQL_VERSION=${postgresql.version}"
145-
]
146-
++ lib.optionals (stdenv.isDarwin && lib.versionAtLeast postgresql.version "16") [
147-
"-DCMAKE_MACOSX_RPATH=ON"
148-
"-DCMAKE_SHARED_MODULE_SUFFIX=.dylib"
149-
"-DCMAKE_SHARED_LIBRARY_SUFFIX=.dylib"
150-
];
151-
152-
preConfigure = lib.optionalString (stdenv.isDarwin && lib.versionAtLeast postgresql.version "16") ''
153-
export DLSUFFIX=.dylib
154-
export CMAKE_SHARED_LIBRARY_SUFFIX=.dylib
155-
export CMAKE_SHARED_MODULE_SUFFIX=.dylib
156-
export MACOSX_RPATH=ON
157-
>>>>>>> 4847adac (chore: update fmt)
158136
'';
159137

160138
passthru = {

nix/overlays/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ self, ... }:
22
{
3-
flake.overlays.default = final: _prev: {
3+
flake.overlays.default = final: prev: {
44
# NOTE: add any needed overlays here. in theory we could
55
# pull them from the overlays/ directory automatically, but we don't
66
# want to have an arbitrary order, since it might matter. being

0 commit comments

Comments
 (0)