From 6ad745209fd03543d59f5ef60487e3afbdcf49f6 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Mon, 12 Feb 2018 21:10:20 +1300 Subject: fontconfig: Fix for HFS+ 1s date resolution issue HFS+ (still common on macOS machines) only has a date resolution of 1 second. This change makes sure that `fcobjshash.h` gets a newer timestamp than `fcobjshash.gperf`. --- pkgs/development/libraries/fontconfig/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 9c4116c8f0b..1109582ad64 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -39,7 +39,8 @@ stdenv.mkDerivation rec { # additionally required for the glibc-2.25 patch; avoid requiring gperf postPatch = '' sed s/CHAR_WIDTH/CHARWIDTH/g -i src/fcobjshash.{h,gperf} - touch src/* + sleep 2 + touch src/fcobjshash.h ''; outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config -- cgit 1.4.1