We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb8a95 commit 6ae2c30Copy full SHA for 6ae2c30
1 file changed
flake.nix
@@ -238,12 +238,19 @@
238
nativeBuildInputs = old.nativeBuildInputs ++ [
239
prev.libsForQt5.wrapQtAppsHook
240
];
241
- prePatch = ''
+ prePatch = let
242
+ icon = lib.nix-filter {
243
+ root = ./.;
244
+ include = [
245
+ "icon"
246
+ ];
247
+ };
248
+ in ''
249
# Allow to open .csx files
250
substituteInPlace QCSXCAD.cpp --replace-fail 'XML-File (*.xml)' 'XML-File (*.xml *.csx)'
251
252
# Open OEMSH
- cp ${self}/icon/openemsh.ico images/openemsh.ico
253
+ cp ${icon}/icon/openemsh.ico images/openemsh.ico
254
sed -i resources.qrc \
255
-e '/^ <file>images\/QCSXCAD_Icon.png<\/file>/a\ <file>images\/openemsh.ico<\/file>'
256
sed -i QCSGridEditor.h \
0 commit comments