tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
odyssey: fix build
alyaeanyx
8 months ago
a4bb668e
6b1a92f5
+17
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
od
odyssey
fix-missing-c-header.patch
package.nix
+12
pkgs/by-name/od/odyssey/fix-missing-c-header.patch
···
1
1
+
diff --git a/third_party/kiwi/kiwi.h b/third_party/kiwi/kiwi.h
2
2
+
index d3bf4113..a8a2ad6e 100644
3
3
+
--- a/third_party/kiwi/kiwi.h
4
4
+
+++ b/third_party/kiwi/kiwi.h
5
5
+
@@ -15,6 +15,7 @@
6
6
+
#include <string.h>
7
7
+
#include <pthread.h>
8
8
+
#include <assert.h>
9
9
+
+#include <ctype.h>
10
10
+
#include <machinarium.h>
11
11
+
12
12
+
#include "kiwi/macro.h"
+5
pkgs/by-name/od/odyssey/package.nix
···
26
26
url = "https://github.com/yandex/odyssey/commit/01ca5b345c4483add7425785c9c33dfa2c135d63.patch";
27
27
sha256 = "sha256-8UPkZkiI08ZZL6GShhug/5/kOVrmdqYlsD1bcqfxg/w=";
28
28
})
29
29
+
# Fixes kiwi build.
30
30
+
./fix-missing-c-header.patch
29
31
];
30
32
31
33
nativeBuildInputs = [ cmake ];
···
34
36
libpq
35
37
zstd
36
38
];
39
39
+
40
40
+
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int -Wno-error=incompatible-pointer-types";
41
41
+
37
42
cmakeFlags = [
38
43
"-DBUILD_COMPRESSION=ON"
39
44
"-DPOSTGRESQL_INCLUDE_DIR=${lib.getDev libpq}/include/postgresql/server"