mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 00:33:02 +02:00
fix: musl builds
This commit is contained in:
parent
647f4c9167
commit
5dba10af21
2 changed files with 100 additions and 135 deletions
14
flake.nix
14
flake.nix
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue