sc-controller: 0.4.8.7 -> 0.4.8.9

This commit is contained in:
rnhmjoj 2022-10-19 11:27:51 +02:00
parent cff2660d09
commit ea8a9631c4
No known key found for this signature in database
GPG key ID: BFBAF4C975F76450

View file

@ -1,5 +1,6 @@
{ lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook { lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook
, pytestCheckHook , pytestCheckHook
, fetchpatch
, gtk3, gobject-introspection, libappindicator-gtk3, librsvg , gtk3, gobject-introspection, libappindicator-gtk3, librsvg
, evdev, pygobject3, pylibacl, bluez, vdf , evdev, pygobject3, pylibacl, bluez, vdf
, linuxHeaders , linuxHeaders
@ -8,13 +9,13 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "sc-controller"; pname = "sc-controller";
version = "0.4.8.7"; version = "0.4.8.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Ryochan7"; owner = "Ryochan7";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "03514sb1spaxdr7x1gq7b54z74in4kd060adj6sq1xjj6d9b297i"; sha256 = "sha256-ym5fkOTRhibBaUqT0+p/jyqqKOVsyMz5INgfkoz0IJA=";
}; };
# see https://github.com/NixOS/nixpkgs/issues/56943 # see https://github.com/NixOS/nixpkgs/issues/56943
@ -28,6 +29,14 @@ buildPythonApplication rec {
checkInputs = [ pytestCheckHook ]; checkInputs = [ pytestCheckHook ];
patches = [
# Fix a broken test
(fetchpatch {
url = "https://github.com/Ryochan7/sc-controller/pull/73.patch";
sha256 = "sha256-qU8hIReZE3cEPCMOFc4RCUCIhiS0gJ3PushMkfDlPns=";
})
];
postPatch = '' postPatch = ''
substituteInPlace scc/paths.py --replace sys.prefix "'$out'" substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include