From 3015c82ecad73712579db990c2878980db72b1dd Mon Sep 17 00:00:00 2001 From: Angus Trau Date: Sun, 8 Aug 2021 16:54:17 +1000 Subject: [PATCH] etcher: fix desktop file --- pkgs/tools/misc/etcher/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/etcher/default.nix b/pkgs/tools/misc/etcher/default.nix index d0fae336d9d..6834179cfe9 100644 --- a/pkgs/tools/misc/etcher/default.nix +++ b/pkgs/tools/misc/etcher/default.nix @@ -59,6 +59,9 @@ stdenv.mkDerivation rec { cp -a usr/share/* $out/share cp -a opt/balenaEtcher/{locales,resources} $out/share/${pname} + substituteInPlace $out/share/applications/balena-etcher-electron.desktop \ + --replace /opt/balenaEtcher/balena-etcher-electron ${pname} + runHook postInstall '';