Skip to content

Commit 16e9c33

Browse files
authored
fix: update fixup phase for control-center (#25)
Fixes a build failure caused by the recently introduced noBrokenSymlinks derivation check. The binary is now already being renamed in the preFixup phase so the correct path can be symlinked by the separateDebugInfo script. Also fixes the substitution inside of desktop files which seems to have been broken by an upstream update.
1 parent f181c17 commit 16e9c33

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkgs/mithril-control-center/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ gnome-control-center.overrideAttrs (old: {
77

88
patches = old.patches ++ (readPatches ./.);
99

10-
postFixup = ''
10+
preFixup = ''
1111
for i in $out/share/applications/*; do
12-
substituteInPlace $i --replace "Exec=$out/bin/gnome-control-center" "Exec=$out/bin/mithril-control-center"
12+
substituteInPlace $i --replace-warn "Exec=gnome-control-center" "Exec=mithril-control-center"
1313
done
1414
mv $out/bin/gnome-control-center $out/bin/mithril-control-center
15+
16+
${old.preFixup}
1517
'';
1618

1719
doCheck = false;

0 commit comments

Comments
 (0)