Skip to content

Commit

Permalink
nix/flake.nix: clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored and wez committed Jan 3, 2025
1 parent 219b825 commit 8e9cf91
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions nix/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 8e9cf91

Please sign in to comment.