From 8e9cf912e66f704f300fac6107206a75036de1e7 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Fri, 3 Jan 2025 17:24:03 +0000 Subject: [PATCH] nix/flake.nix: clean-up --- nix/flake.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/nix/flake.nix b/nix/flake.nix index 5334d3065fd..039bf71b524 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -108,17 +108,13 @@ allowBuiltinFetchGit = true; }; - env.NIX_CFLAGS_COMPILE = toString [ "-Wno-macro-redefined" ]; - prePatch = '' rm -rf deps/freetype/{freetype2,libpng,zlib} deps/harfbuzz/harfbuzz - mkdir -p deps/freetype/{freetype2,libpng,zlib} deps/harfbuzz/harfbuzz - - cp -r ${inputs.freetype2}/* deps/freetype/freetype2 - cp -r ${inputs.libpng}/* deps/freetype/libpng - cp -r ${inputs.zlib}/* deps/freetype/zlib - cp -r ${inputs.harfbuzz}/* deps/harfbuzz/harfbuzz + ln -s ${inputs.freetype2} deps/freetype/freetype2 + ln -s ${inputs.libpng} deps/freetype/libpng + ln -s ${inputs.zlib} deps/freetype/zlib + ln -s ${inputs.harfbuzz} deps/harfbuzz/harfbuzz ''; postPatch = ''