Skip to content

Commit fd7f8f5

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

File tree

7 files changed

+28
-31
lines changed

7 files changed

+28
-31
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
};
99
inputs = {
1010
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
11+
nixpkgs-pgbackrest.url = "github:nixos/nixpkgs/nixos-unstable-small";
1112
flake-parts.url = "github:hercules-ci/flake-parts";
1213
nixpkgs-go124.url = "github:Nixos/nixpkgs/d2ac4dfa61fba987a84a0a81555da57ae0b9a2b0";
1314
flake-utils.url = "github:numtide/flake-utils";

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/ext/plv8/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ let
4343
inherit pname version;
4444
#version = "3.1.10";
4545

46+
v8 = (if (builtins.compareVersions "3.1.10" version >= 0) then v8 else nodejs_20.libv8);
47+
4648
src = fetchFromGitHub {
4749
owner = "plv8";
4850
repo = "plv8";
@@ -70,7 +72,7 @@ let
7072

7173
buildInputs =
7274
[
73-
(if (builtins.compareVersions "3.1.10" version >= 0) then v8 else nodejs_20.libv8)
75+
v8
7476
postgresql
7577
]
7678
++ lib.optionals stdenv.isDarwin [

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

nix/postgresql/generic.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ let
7979
else
8080
(lib.warn "postgresql: argument enableSystemd is deprecated, please use systemdSupport instead." enableSystemd);
8181

82-
isOrioleDB = (builtins.match "[0-9][0-9]_.*" version) != null;
83-
8482
pname = "postgresql";
8583

8684
stdenv' = if jitSupport then llvmPackages.stdenv else stdenv;

0 commit comments

Comments
 (0)