13 url = "https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.AppImage";
14 hash = "sha256-owxSm8t7rHM5ywJPp8sJQ5aAyNKgrbyJY6qFp78/UhM=";
17 appimageContents = appimageTools.extractType2 {
18 inherit pname version src;
21 appimageTools.wrapType2 {
22 inherit pname version src;
33 extraInstallCommands = ''
34 mkdir -p $out/share/{applications,pixmaps}
36 cp ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
37 cp ${appimageContents}/${pname}.png $out/share/pixmaps/${pname}.png
39 substituteInPlace $out/share/applications/${pname}.desktop \
40 --replace-fail 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
42 wrapProgram $out/bin/${pname} \
43 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
47 description = "Free and Open Source AI Image Upscaler";
48 homepage = "https://upscayl.github.io/";
49 maintainers = with maintainers; [ icy-thought ];
50 license = licenses.agpl3Plus;
51 platforms = platforms.linux;
52 mainProgram = "upscayl";