Unverified Commit 3da1e72b authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #237494 from Icy-Thought/upscayl

upscayl: init at 2.5.5
parents 4c92d099 cd587988
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  appimageTools,
  fetchurl,
  lib,
}: let
  pname = "upscayl";
  version = "2.5.5";

  src = fetchurl {
    url = "https://github.com/upscayl/upscayl/releases/download/v${version}/upscayl-${version}-linux.AppImage";
    hash = "sha256-qpLxOGphR9iHvtb8AZZaMict/g8wLkL7Dhr4mt3LZdk=";
  };

  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.agpl3Only;
      platforms = platforms.linux;
    };
  }
+2 −0
Original line number Diff line number Diff line
@@ -27986,6 +27986,8 @@ with pkgs;
  upower = callPackage ../os-specific/linux/upower { };
  upscayl = callPackage ../applications/graphics/upscayl { };
  usbguard = callPackage ../os-specific/linux/usbguard { };
  usbguard-notifier = callPackage ../os-specific/linux/usbguard-notifier { };