Commit 40b3e9f1 authored by Toast's avatar Toast
Browse files

handheld-daemon: 3.4.1 -> 3.5.7

Also install hhd's hwdb file, since it is needed for buttons to work
properly on the MSI Claw, among other things
parent 23e89b7d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@
}:
python3.pkgs.buildPythonApplication rec {
  pname = "handheld-daemon";
  version = "3.4.1";
  version = "3.5.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hhd-dev";
    repo = "hhd";
    rev = "refs/tags/v${version}";
    hash = "sha256-hup9G4pTlTl68zLzhaDmH7nV8fp/I94Nuis68B8K2wY=";
    hash = "sha256-nUHEPyTHU7LD6BZg+2cLl4M/ZPb5MQl6xxtJW1iZkEY=";
  };

  propagatedBuildInputs = with python3.pkgs; [
@@ -27,6 +27,7 @@ python3.pkgs.buildPythonApplication rec {
    setuptools
    toybox
    xlib
    pyserial
  ];

  # This package doesn't have upstream tests.
@@ -46,6 +47,7 @@ python3.pkgs.buildPythonApplication rec {

  postInstall = ''
    install -Dm644 $src/usr/lib/udev/rules.d/83-hhd.rules -t $out/lib/udev/rules.d/
    install -Dm644 $src/usr/lib/udev/hwdb.d/83-hhd.hwdb -t $out/lib/udev/hwdb.d/
  '';

  meta = with lib; {