[Backport release-25.05] pkgsStatic.difftastic: fix build (#426318)

This commit is contained in:
Wolfgang Walther
2025-08-09 17:02:53 +00:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
lib, lib,
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
stdenv,
versionCheckHook, versionCheckHook,
nix-update-script, nix-update-script,
}: }:
@@ -19,6 +20,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-1u3oUbqhwHXD90ld70pjK2XPJe5hpUbJtU78QpIjAE8="; cargoHash = "sha256-1u3oUbqhwHXD90ld70pjK2XPJe5hpUbJtU78QpIjAE8=";
env = lib.optionalAttrs stdenv.hostPlatform.isStatic { RUSTFLAGS = "-C relocation-model=static"; };
# skip flaky tests # skip flaky tests
checkFlags = [ "--skip=options::tests::test_detect_display_width" ]; checkFlags = [ "--skip=options::tests::test_detect_display_width" ];