mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 20:30:12 +00:00
martin: fix build with newer gcc (#581447)
This commit is contained in:
40
pkgs/by-name/ma/martin/fix-build-gcc15.patch
Normal file
40
pkgs/by-name/ma/martin/fix-build-gcc15.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
diff --git c/Cargo.lock i/Cargo.lock
|
||||
index aefa9cb5..44d51258 100644
|
||||
--- c/Cargo.lock
|
||||
+++ i/Cargo.lock
|
||||
@@ -5257,18 +5257,18 @@ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
||||
|
||||
[[package]]
|
||||
name = "libdeflate-sys"
|
||||
-version = "1.24.0"
|
||||
+version = "1.26.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "805824325366c44599dfeb62850fe3c7d7b3e3d75f9ab46785bc7dba3676815c"
|
||||
+checksum = "d7870e5fbd2766179a937c725fb11f4ca0ef025d982beb61bd3ce755425bd19c"
|
||||
dependencies = [
|
||||
"cc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libdeflater"
|
||||
-version = "1.24.0"
|
||||
+version = "1.26.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "b270bcc7e9d6dce967a504a55b1b0444f966aa9184e8605b531bc0492abb30bb"
|
||||
+checksum = "0cbb8285d2e2bd4b8d4155840ae81929354b4ba0d7b3c272c84761ffa2141e1f"
|
||||
dependencies = [
|
||||
"libdeflate-sys",
|
||||
]
|
||||
diff --git c/deny.toml i/deny.toml
|
||||
index 4bb3aeb5..57c1c379 100644
|
||||
--- c/deny.toml
|
||||
+++ i/deny.toml
|
||||
@@ -70,8 +70,6 @@ skip-tree = []
|
||||
deny = [
|
||||
# The last-known-good versions are pinned in `just update`; ban everything newer
|
||||
# until a release is verified to build on all targets (musl + Windows).
|
||||
- { crate = "libdeflater:>1.24.0", reason = "1.25.x bundles libdeflate 1.25, which does not compile under musl" },
|
||||
- { crate = "libdeflate-sys:>1.24.0", reason = "1.25.x bundles libdeflate 1.25, which does not compile under musl" },
|
||||
{ crate = "freetype-sys:>0.20.1", reason = "newer releases bundle a libpng that fails to compile (missing zlib.h) on musl and Windows" },
|
||||
{ crate = "freetype-rs:>0.35.0", reason = "newer releases depend on freetype-sys >0.20.1 which fails to compile on musl and Windows" },
|
||||
{ crate = "sdf_glyph_renderer:>1.0.2", reason = "newer releases depend on freetype-rs >0.35.0 which fails to compile on musl and Windows" },
|
||||
@@ -6,10 +6,15 @@
|
||||
buildNpmPackage,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
|
||||
aws-lc,
|
||||
curl,
|
||||
libuv,
|
||||
libz,
|
||||
openssl,
|
||||
sqlite,
|
||||
zstd,
|
||||
|
||||
postgresql,
|
||||
postgresqlTestHook,
|
||||
nix-update-script,
|
||||
@@ -58,7 +63,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
|
||||
patches = [ ./dont-build-webui.patch ];
|
||||
|
||||
cargoHash = "sha256-p5sAkmMTirMdmXnVb2aqGKhPYpX/uluvzq0uw4W1Bt8=";
|
||||
cargoPatches = [ ./fix-build-gcc15.patch ];
|
||||
|
||||
cargoHash = "sha256-yZFVK6BaaGutxDWu0WFa6HZtdoIhgSADYclz+ULAy0s=";
|
||||
|
||||
webui = buildNpmPackage {
|
||||
pname = "martin-ui";
|
||||
@@ -99,10 +106,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
aws-lc
|
||||
curl
|
||||
libuv
|
||||
libz
|
||||
openssl
|
||||
sqlite
|
||||
zstd
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
|
||||
Reference in New Issue
Block a user