compiling protonup-qt from source

This commit is contained in:
Danilo Reyes 2024-12-19 22:33:40 -06:00
parent cd5a858f9e
commit 2ce209820a
4 changed files with 175 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonPackage rec {
pname = "gevent-eventemitter";
version = "2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rossengeorgiev";
repo = "gevent-eventemitter";
rev = "v${version}";
hash = "sha256-aW4OsQi3N5yAMdbTd8rxbb2qYMfFJBR4WQFIXvxpiMw=";
};
build-system = with python3Packages; [
setuptools
wheel
];
dependencies = with python3Packages; [
gevent
];
pythonImportsCheck = [
"eventemitter"
];
meta = {
description = "EventEmitter using gevent";
homepage = "https://github.com/rossengeorgiev/gevent-eventemitter";
license = lib.licenses.unfree; # FIXME: nix-init did not find a license
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "gevent-eventemitter";
};
}

36
pkgs_pr/inputs.nix Normal file
View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonPackage rec {
pname = "inputs";
version = "0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "zeth";
repo = "inputs";
rev = "v${version}";
hash = "sha256-tU1R6lhSMZj3Y6XdrT/Yfbte/BdLDvo6TzvLbnr+1vo=";
};
build-system = [
python3Packages.setuptools
python3Packages.wheel
];
pythonImportsCheck = [
"inputs"
];
meta = {
description = "Cross-platform Python support for keyboards, mice and gamepads";
homepage = "https://github.com/zeth/inputs";
changelog = "https://github.com/zeth/inputs/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "inputs";
};
}

50
pkgs_pr/steam.nix Normal file
View File

@ -0,0 +1,50 @@
{
lib,
python3Packages,
fetchFromGitHub,
callPackage,
}:
python3Packages.buildPythonPackage rec {
pname = "steam";
version = "1.4.4";
pyproject = true;
src = fetchFromGitHub {
owner = "ValvePython";
repo = "steam";
rev = version;
hash = "sha256-OY04GsX3KMPvpsQl8sUurzFyJu+JKpES8B0iD6Z5uyw=";
};
build-system = with python3Packages; [
setuptools
wheel
];
dependencies =
with python3Packages;
[
six
pycryptodomex
requests
urllib3
vdf
gevent
protobuf
cachetools
cryptography
]
++ [ (callPackage ./gevent-eventemitter.nix { }) ];
pythonImportsCheck = [
"steam"
];
meta = {
description = "Python package for interacting with Steam";
homepage = "https://github.com/ValvePython/steam";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ CaptainJawZ ];
};
}

50
pkgs_wip/protonup-qt.nix Normal file
View File

@ -0,0 +1,50 @@
{
lib,
python3Packages,
fetchFromGitHub,
callPackage,
}:
python3Packages.buildPythonApplication rec {
pname = "proton-up-qt";
version = "2.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "DavidoTek";
repo = "ProtonUp-Qt";
rev = "v${version}";
hash = "sha256-hf0ZLvn5mv0BlUgMvDwpdsa9ye3Bz47n0aSz+jgBrXg=";
};
pythonRemoveDeps = [
"pyside6-essentials"
];
build-system = [
python3Packages.setuptools
];
dependencies =
with python3Packages;
[
pyside6
pyxdg
pyyaml
requests
vdf
zstandard
]
++ [
(callPackage ./inputs.nix { })
(callPackage ./steam.nix { })
];
meta = {
description = "Install and manage GE-Proton, Luxtorpeda & more for Steam and Wine-GE & more for Lutris with this graphical user interface";
homepage = "https://github.com/DavidoTek/ProtonUp-Qt";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "proton-up-qt";
};
}