Install desktop entry via substituteAll in Nix derivation

- Generate `t3code.desktop` before installing it
- Simplify the desktop file install step
This commit is contained in:
2026-04-25 13:20:48 +03:00
parent 58048820dc
commit 3fbafbc0ea
+2 -3
View File
@@ -138,9 +138,8 @@ in
--add-flags "$out/share/${pname}/resources/app.asar"
export out
install -d "$out/share/applications"
substituteAll ${./t3code.desktop.in} \
"$out/share/applications/t3code.desktop"
substituteAll ${./t3code.desktop.in} t3code.desktop
install -Dm644 t3code.desktop "$out/share/applications/t3code.desktop"
runHook postInstall
'';