fix: musl builds

This commit is contained in:
Shuroii 2025-07-01 21:38:48 +02:00
commit 5dba10af21
No known key found for this signature in database
2 changed files with 100 additions and 135 deletions

View file

@ -40,9 +40,8 @@
mkScope =
pkgs:
pkgs.lib.makeScope pkgs.newScope (self: {
inherit pkgs;
craneLib = ((inputs.crane.mkLib pkgs).overrideToolchain (_: toolchain));
inherit inputs;
inherit pkgs inputs;
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain (_: toolchain);
main = self.callPackage ./nix/pkgs/main { };
liburing = pkgs.liburing.overrideAttrs {
# Tests weren't building
@ -53,14 +52,10 @@
];
buildFlags = [ "library" ];
};
rocksdb = pkgs.rocksdb_9_10.overrideAttrs (oldAttrs: {
rocksdb-custom = pkgs.rocksdb_9_10.overrideAttrs (oldAttrs: {
version = "v9.11.1";
src = inputs.rocksdb;
# We have this already at https://forgejo.ellis.link/continuwuation/rocksdb/commit/a935c0273e1ba44eacf88ce3685a9b9831486155
# Unsetting this so we don't have to revert it and make this nix exclusive
patches = [ ];
cmakeFlags =
pkgs.lib.subtractLists [
# No real reason to have snappy or zlib, no one uses this
@ -106,7 +101,8 @@
# preInstall hooks has stuff for messing with ldb/sst_dump which we don't need or use
preInstall = "";
#
# We have this already at https://forgejo.ellis.link/continuwuation/rocksdb/commit/a935c0273e1ba44eacf88ce3685a9b9831486155
patches = [ ];
postPatch = ''
# Fix gcc-13 build failures due to missing <cstdint> and
# <system_error> includes, fixed upstream since 8.x