Unverified Commit 0a4ac75e authored by rewine's avatar rewine Committed by GitHub
Browse files

linyaps-web-store-installer: init at 1.6.8 (#448147)

parents ea839424 495f606f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ in
      package = lib.mkPackageOption pkgs "linyaps" { };

      boxPackage = lib.mkPackageOption pkgs "linyaps-box" { };

      webStoreInstallerPackage = lib.mkPackageOption pkgs "linyaps-web-store-installer" { };
    };
  };

@@ -33,6 +35,7 @@ in
      systemPackages = [
        cfg.package
        cfg.boxPackage
        cfg.webStoreInstallerPackage
      ];
    };

+43 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  qt6,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "linyaps-web-store-installer";
  version = "1.6.8";

  src = fetchFromGitHub {
    owner = "OpenAtom-Linyaps";
    repo = "linyaps-web-store-installer";
    rev = finalAttrs.version;
    hash = "sha256-KbtGoXzxZmo6x1bvzDZbwp/wl+dBojB6E+K87CAkI7g=";
  };

  postPatch = ''
    substituteInPlace ll-installer/space.linglong.Installer.desktop \
      --replace-fail "Exec=/usr/bin/ll-installer" "Exec=$out/bin/ll-installer"
  '';

  nativeBuildInputs = [
    cmake
    qt6.wrapQtAppsHook
  ];

  buildInputs = [
    qt6.qtbase
  ];

  meta = {
    description = "URI Handler for Linyaps Web Store";
    homepage = "https://github.com/OpenAtom-Linyaps/linyaps-web-store-installer";
    changelog = "https://github.com/OpenAtom-Linyaps/linyaps-web-store-installer/releases/tag/${finalAttrs.version}";
    license = lib.licenses.lgpl3Plus;
    maintainers = with lib.maintainers; [ hhr2020 ];
    mainProgram = "ll-installer";
    platforms = lib.platforms.linux;
  };
})