mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
pkgsStatic.difftastic: fix build
(cherry picked from commit e24f68dedd)
This commit is contained in:
committed by
github-actions[bot]
parent
7caa330c49
commit
fb3005f6a5
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -20,6 +21,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-1u3oUbqhwHXD90ld70pjK2XPJe5hpUbJtU78QpIjAE8=";
|
||||
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isStatic { RUSTFLAGS = "-C relocation-model=static"; };
|
||||
|
||||
# skip flaky tests
|
||||
checkFlags = [ "--skip=options::tests::test_detect_display_width" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user