mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
lenovo-legion: 0.0.12 -> 0.0.18 with patches in master
This commit is contained in:
parent
8de11d32de
commit
f9d8517d5d
@ -1,14 +1,20 @@
|
||||
{ lib, fetchFromGitHub, xorg, libsForQt5, wrapQtAppsHook, python3 }:
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
xorg,
|
||||
wrapQtAppsHook,
|
||||
python3,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "lenovo-legion-app";
|
||||
version = "0.0.12";
|
||||
version = "0.0.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "johnfanv2";
|
||||
repo = "LenovoLegionLinux";
|
||||
rev = "v${version}-prerelease";
|
||||
hash = "sha256-BNrRv9EBmNINQbAw+BzVxKl/XoDgH1tsNZHJxfSpNoU=";
|
||||
rev = "e9c1d8157a7b25e4334d0b1d887338c670e39f6a";
|
||||
hash = "sha256-6JYOTDzz9/flyEDQo1UPjWT5+Cuea5fsdbdc6AooDxU=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/python/legion_linux";
|
||||
@ -16,22 +22,24 @@ python3.pkgs.buildPythonApplication rec {
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
pyqt5
|
||||
pyqt6
|
||||
argcomplete
|
||||
pyyaml
|
||||
darkdetect
|
||||
xorg.libxcb
|
||||
libsForQt5.qtbase
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# only fixup application (legion-linux-gui), service (legiond) currently not installed so do not fixup
|
||||
# version
|
||||
substituteInPlace ./setup.cfg \
|
||||
--replace-fail "_VERSION" "${version}"
|
||||
substituteInPlace ../../extra/service/fancurve-set \
|
||||
--replace-fail "FOLDER=/etc/legion_linux/" "FOLDER=$out/share/legion_linux"
|
||||
|
||||
# /etc
|
||||
substituteInPlace ./legion_linux/legion.py \
|
||||
--replace-fail "/etc/legion_linux" "$out/share/legion_linux"
|
||||
|
||||
# /usr
|
||||
substituteInPlace ./legion_linux/legion_gui.desktop \
|
||||
--replace-fail "Icon=/usr/share/pixmaps/legion_logo.png" "Icon=legion_logo"
|
||||
'';
|
||||
@ -47,8 +55,11 @@ python3.pkgs.buildPythonApplication rec {
|
||||
homepage = "https://github.com/johnfanv2/LenovoLegionLinux";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.ulrikstrid ];
|
||||
maintainers = with lib.maintainers; [
|
||||
ulrikstrid
|
||||
realsnick
|
||||
chn
|
||||
];
|
||||
mainProgram = "legion_gui";
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user