mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-08 14:20:01 +02:00
ref: Clean up rocksdb build
This commit is contained in:
parent
36a7bd7eb3
commit
cb138f5039
1 changed files with 6 additions and 4 deletions
10
flake.nix
10
flake.nix
|
@ -42,9 +42,8 @@
|
||||||
mkScope =
|
mkScope =
|
||||||
pkgs:
|
pkgs:
|
||||||
pkgs.lib.makeScope pkgs.newScope (self: {
|
pkgs.lib.makeScope pkgs.newScope (self: {
|
||||||
inherit pkgs;
|
inherit pkgs inputs;
|
||||||
craneLib = ((inputs.crane.mkLib pkgs).overrideToolchain (_: toolchain));
|
craneLib = ((inputs.crane.mkLib pkgs).overrideToolchain (_: toolchain));
|
||||||
inherit inputs;
|
|
||||||
main = self.callPackage ./nix/pkgs/main { };
|
main = self.callPackage ./nix/pkgs/main { };
|
||||||
liburing = pkgs.liburing.overrideAttrs {
|
liburing = pkgs.liburing.overrideAttrs {
|
||||||
# Tests weren't building
|
# Tests weren't building
|
||||||
|
@ -56,14 +55,17 @@
|
||||||
buildFlags = [ "library" ];
|
buildFlags = [ "library" ];
|
||||||
};
|
};
|
||||||
rocksdb =
|
rocksdb =
|
||||||
(pkgs.rocksdb.override {
|
(pkgs.rocksdb_9_10.override {
|
||||||
|
# Override the liburing input for the build with our own so
|
||||||
|
# we have it built with the library flag
|
||||||
|
liburing = self.liburing;
|
||||||
}).overrideAttrs
|
}).overrideAttrs
|
||||||
(old: {
|
(old: {
|
||||||
src = inputs.rocksdb;
|
src = inputs.rocksdb;
|
||||||
version = "v9.11.1";
|
version = "v9.11.1";
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
pkgs.lib.subtractLists [
|
pkgs.lib.subtractLists [
|
||||||
# no real reason to have snappy or zlib, no one uses this
|
# No real reason to have snappy or zlib, no one uses this
|
||||||
"-DWITH_SNAPPY=1"
|
"-DWITH_SNAPPY=1"
|
||||||
"-DZLIB=1"
|
"-DZLIB=1"
|
||||||
"-DWITH_ZLIB=1"
|
"-DWITH_ZLIB=1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue