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:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user