Unverified Commit f6286c10 authored by Aurelia's avatar Aurelia
Browse files

handheld-daemon: 3.18.5 -> 3.19.22

power.py also seems to have switched to using subprocess with arguments inside a string, so the replace now only matches the opening quote.
parent 5e2a59a5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -16,14 +16,14 @@
}:
python3Packages.buildPythonApplication rec {
  pname = "handheld-daemon";
  version = "3.18.5";
  version = "3.19.22";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hhd-dev";
    repo = "hhd";
    tag = "v${version}";
    hash = "sha256-T/0qKHF/BmVtVO19pd4/iqIZP1/G7iayDzHdhjRIA7U=";
    hash = "sha256-mvIB2lgFaHMCGEshKvagOFUrvcgEbyUS9VXJpXbvzTs=";
  };

  # Handheld-daemon runs some selinux-related utils which are not in nixpkgs.
@@ -49,7 +49,7 @@ python3Packages.buildPythonApplication rec {

    substituteInPlace src/hhd/plugins/power/power.py \
      --replace-fail '"efibootmgr"' '"${lib.getExe' efibootmgr "id"}"' \
      --replace-fail '"systemctl"' '"${lib.getExe' systemd "systemctl"}"' \
      --replace-fail '"systemctl' '"${lib.getExe' systemd "systemctl"}' \
      --replace-fail '"stat"' '"${lib.getExe' coreutils "stat"}"' \
      --replace-fail '"swapon"' '"${lib.getExe' util-linux "swapon"}"' \
      --replace-fail '"swapoff"' '"${lib.getExe' util-linux "swapoff"}"' \