From ce529106b6f37a7ca44b0a022a86d4f9be725200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 9 Aug 2024 12:55:04 -0700 Subject: [PATCH] warp: fix compilation with Rust 1.80 --- pkgs/applications/networking/warp/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/warp/default.nix b/pkgs/applications/networking/warp/default.nix index 0861e72906db..d7f64031c969 100644 --- a/pkgs/applications/networking/warp/default.nix +++ b/pkgs/applications/networking/warp/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitLab +, fetchpatch2 , appstream-glib , cargo , desktop-file-utils @@ -33,14 +34,23 @@ stdenv.mkDerivation rec { hash = "sha256-GRxZ3y1PdJpBDnGCfmOmZgN8n1aaYf9IhyszRwo3MjQ="; }; + patches = [ + # https://gitlab.gnome.org/World/warp/-/merge_requests/74 + (fetchpatch2 { + name = "rust-1.80-compat.patch"; + url = "https://gitlab.gnome.org/World/warp/-/commit/38747cc2dde79089df53fd8451ea2db13f9f3714.patch"; + hash = "sha256-9P5LwCHaC6J5WR2OnjCaNE+4de/Jv6XGXS7bOfYrM7w="; + }) + ]; + postPatch = '' patchShebangs build-aux ''; cargoDeps = rustPlatform.fetchCargoTarball { - inherit src; + inherit src patches; name = "${pname}-${version}"; - hash = "sha256-v/MhVcQmMYD/n/8wmPCYUy4YpXhL0v4fq8h6cllo/pw="; + hash = "sha256-xF9AzcO2uawHu7XZay7Wwr2r+OVLbXhfSynnBYbVkZM="; }; nativeBuildInputs = [