From 290f5c015abc9097d45d70b8885e25bb1ac1e801 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 2 Oct 2024 09:44:20 +0300 Subject: [PATCH] nix-ld: backport patch for Rust 1.81 --- pkgs/by-name/ni/nix-ld/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/ni/nix-ld/package.nix b/pkgs/by-name/ni/nix-ld/package.nix index 94c4068cb735..16404454df02 100644 --- a/pkgs/by-name/ni/nix-ld/package.nix +++ b/pkgs/by-name/ni/nix-ld/package.nix @@ -1,6 +1,7 @@ { stdenv, fetchFromGitHub, + fetchpatch, nixosTests, rustPlatform, lib, @@ -17,6 +18,14 @@ rustPlatform.buildRustPackage rec { hash = "sha256-rmSXQ4MYQe/OFDBRlqqw5kyp9b/aeEg0Fg9c167xofg="; }; + patches = [ + # Backport fix for Rust 1.81 + (fetchpatch { + url = "https://github.com/nix-community/nix-ld/commit/9583c80eafc4f904a013713c084e9dc5e47c3675.patch"; + hash = "sha256-glZNdNh+dAmi1xjgcitLymsaQIrEQx4M5VFDOxpDk1Q="; + }) + ]; + cargoHash = "sha256-BVulfs4zm3Iruq00H49QcxR3V+iZvePtLBTytdXfLP4="; hardeningDisable = [ "stackprotector" ];