Unverified Commit 1aecdfd4 authored by Guy Chronister's avatar Guy Chronister
Browse files

altair: fix fetchurl attr, hardcode binary/desktop names, fully qualify lib attrs

Use `hash` instead of deprecated `sha256`, replace ${pname} with explicit
`altair` in wrapper and .desktop handling, and remove broad `with lib;` in meta.
parent 4d948d71
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -22,12 +22,12 @@ appimageTools.wrapType2 {
  nativeBuildInputs = [ makeWrapper ];

  extraInstallCommands = ''
    wrapProgram $out/bin/${pname} \
    wrapProgram $out/bin/altair \
        --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"

    install -m 444 -D ${appimageContents}/${pname}.desktop -t $out/share/applications
    substituteInPlace $out/share/applications/${pname}.desktop \
      --replace 'Exec=AppRun' 'Exec=${pname}'
    install -m 444 -D ${appimageContents}/altair.desktop -t $out/share/applications
    substituteInPlace $out/share/applications/altair.desktop \
      --replace-fail 'Exec=AppRun' 'Exec=altair'
    cp -r ${appimageContents}/usr/share/icons $out/share
  '';