change overlay not to recompile each time

This commit is contained in:
smayzy 2026-03-22 18:56:04 +01:00
parent 87046167e1
commit 1f0756b051

View File

@ -1,10 +1,12 @@
final: prev: { final: prev: {
freecad = prev.freecad.overrideAttrs (old: { smayzy-freecad-x11-fix = prev.stdenv.mkDerivation {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ final.makeWrapper ]; name = "smayzy-freecad-x11-fix";
buildInputs = [ prev.makeWrapper ];
postFixup = (old.postFixup or "") + '' installPhase = ''
wrapProgram $out/bin/FreeCAD \ mkdir -p $out/bin
--set QT_QPA_PLATFORM xcb wrapProgram ${prev.freecad}/bin/FreeCAD \
--set QT_QPA_PLATFORM xcb \
--prefix PATH : ${prev.stdenv.cc.cc}/bin
''; '';
}); };
} }