From d0beaee2b81927dab293970dffbb89214e8aafe7 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 30 Jun 2024 17:22:37 -0500 Subject: [PATCH] czkawka: fix x86 darwin --- pkgs/by-name/cz/czkawka/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/cz/czkawka/package.nix b/pkgs/by-name/cz/czkawka/package.nix index fdf03e4592914..ca21fc82c8755 100644 --- a/pkgs/by-name/cz/czkawka/package.nix +++ b/pkgs/by-name/cz/czkawka/package.nix @@ -10,6 +10,7 @@ , gobject-introspection , gtk4 , pango +, overrideSDK , pkg-config , rustPlatform , testers @@ -28,8 +29,12 @@ let hash = "sha256-SOWtLmehh1F8SoDQ+9d7Fyosgzya5ZztCv8IcJZ4J94="; }; cargoHash = "sha256-GOX7V6NLEMP06nMeRZINwcWCaHwK6T3nkRKl4e25DPg="; + + buildRustPackage' = rustPlatform.buildRustPackage.override { + stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv; + }; in -rustPlatform.buildRustPackage { +buildRustPackage' { inherit pname version src cargoHash; nativeBuildInputs = [