2023-07-15 17:15:38 +00:00
|
|
|
{
|
|
|
|
appimageTools,
|
|
|
|
fetchurl,
|
|
|
|
lib,
|
|
|
|
}: let
|
|
|
|
pname = "upscayl";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.10.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.AppImage";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-nRYNYNHIkbvvQZd1zRDCCsCadgRgV/yn9WfaKjt44O8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraPkgs = pkgs: with pkgs; [vulkan-headers vulkan-loader];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p $out/share/{applications,pixmaps}
|
|
|
|
|
|
|
|
cp ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
|
|
|
cp ${appimageContents}/${pname}.png $out/share/pixmaps/${pname}.png
|
|
|
|
|
|
|
|
mv $out/bin/${pname}-${version} $out/bin/${pname}
|
|
|
|
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
|
|
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=${pname}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free and Open Source AI Image Upscaler";
|
|
|
|
homepage = "https://upscayl.github.io/";
|
|
|
|
maintainers = with maintainers; [icy-thought];
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "upscayl";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|