mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
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.
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user