Unverified Commit 3f1b3cc9 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

flashfocus: Use path for pidof (#353546)

parents 9d03557a b7e0ea3a
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
{ lib, python3Packages, fetchPypi, netcat-openbsd, nix-update-script }:
{ lib, python3Packages, fetchPypi, netcat-openbsd, procps, bash, nix-update-script }:

python3Packages.buildPythonApplication rec {
  pname = "flashfocus";
@@ -13,13 +13,20 @@ python3Packages.buildPythonApplication rec {

  postPatch = ''
    substituteInPlace bin/nc_flash_window \
      --replace "nc" "${lib.getExe netcat-openbsd}"
      --replace-fail "nc" "${lib.getExe netcat-openbsd}"

    substituteInPlace src/flashfocus/util.py \
      --replace-fail "pidof" "${lib.getExe' procps "pidof"}"
  '';

  nativeBuildInputs = with python3Packages; [
    setuptools
  ];

  buildInputs = [
    bash
  ];

  pythonRelaxDeps = [
    "pyyaml"
    "xcffib"