Unverified Commit 83861c4f authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

rare: move to by-name, modernize, adopt (#451165)

parents 0465381e 8174cdfd
Loading
Loading
Loading
Loading
+14 −16
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildPythonApplication,
  qt5,
  legendary-gl,
  orjson,
  pypresence,
  pyqt5,
  python,
  qtawesome,
  requests,
  setuptools,
  typing-extensions,
  python3Packages,
}:

buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "rare";
  version = "1.10.11";
  pyproject = true;
@@ -27,12 +19,18 @@ buildPythonApplication rec {
  };

  nativeBuildInputs = [
    setuptools
    qt5.wrapQtAppsHook
  ];

  propagatedBuildInputs = [
    legendary-gl
  ];

  build-system = with python3Packages; [
    setuptools
  ];

  dependencies = with python3Packages; [
    orjson
    pypresence
    pyqt5
@@ -45,7 +43,7 @@ buildPythonApplication rec {

  postInstall = ''
    install -Dm644 misc/rare.desktop -t $out/share/applications/
    install -Dm644 $out/${python.sitePackages}/rare/resources/images/Rare.png $out/share/pixmaps/rare.png
    install -Dm644 $out/${python3Packages.python.sitePackages}/rare/resources/images/Rare.png $out/share/pixmaps/rare.png
  '';

  preFixup = ''
@@ -55,12 +53,12 @@ buildPythonApplication rec {
  # Project has no tests
  doCheck = false;

  meta = with lib; {
  meta = {
    description = "GUI for Legendary, an Epic Games Launcher open source alternative";
    homepage = "https://github.com/RareDevs/Rare";
    maintainers = [ ];
    license = licenses.gpl3Only;
    platforms = platforms.linux;
    maintainers = with lib.maintainers; [ iedame ];
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    mainProgram = "rare";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -2225,8 +2225,6 @@ with pkgs;

  psrecord = python3Packages.callPackage ../tools/misc/psrecord { };

  rare = python3Packages.callPackage ../games/rare { };

  renpy = callPackage ../by-name/re/renpy/package.nix { python3 = python312; };

  rmview = libsForQt5.callPackage ../applications/misc/remarkable/rmview { };