diff --git a/pkgs/by-name/gn/gnome-weather/package.nix b/pkgs/by-name/gn/gnome-weather/package.nix index 99a475963d3f..edbfa6503a97 100644 --- a/pkgs/by-name/gn/gnome-weather/package.nix +++ b/pkgs/by-name/gn/gnome-weather/package.nix @@ -55,8 +55,7 @@ stdenv.mkDerivation rec { # entry point to the wrapped binary we get back to a wrapped # binary. substituteInPlace "data/org.gnome.Weather.service.in" \ - --replace "Exec=@DATA_DIR@/@APP_ID@" \ - "Exec=$out/bin/gnome-weather" + --replace-fail "Exec=@DATA_DIR@/@APP_ID@" "Exec=gnome-weather" chmod +x meson_post_install.py patchShebangs meson_post_install.py