about summary refs log tree commit diff
path: root/pkgs/tools/misc/etcher
diff options
context:
space:
mode:
authorAngus Trau <me@angus.ws>2021-08-08 16:54:17 +1000
committerAngus Trau <me@angus.ws>2021-08-08 16:54:17 +1000
commit3015c82ecad73712579db990c2878980db72b1dd (patch)
treeb8489702da028a12fb6ae1c3f8379c954be460bf /pkgs/tools/misc/etcher
parentcc2c11d54395a1a7972bd8c87512ec1610824c43 (diff)
etcher: fix desktop file
Diffstat (limited to 'pkgs/tools/misc/etcher')
-rw-r--r--pkgs/tools/misc/etcher/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/etcher/default.nix b/pkgs/tools/misc/etcher/default.nix
index d0fae336d9d3c..6834179cfe9a2 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
   '';