pkgsStatic.difftastic: fix build

This commit is contained in:
Defelo 2025-07-15 12:49:30 +02:00
parent 7ef063ea1a
commit e24f68dedd
No known key found for this signature in database
GPG Key ID: 2A05272471204DD3

View File

@ -2,6 +2,7 @@
lib, lib,
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
stdenv,
versionCheckHook, versionCheckHook,
nix-update-script, nix-update-script,
}: }:
@ -20,6 +21,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
useFetchCargoVendor = true; useFetchCargoVendor = true;
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" ];