flashfocus: Use path for pidof (#353546)

Changed files
+9 -2
pkgs
misc
flashfocus
+9 -2
pkgs/misc/flashfocus/default.nix
···
-
{ lib, python3Packages, fetchPypi, netcat-openbsd, nix-update-script }:
+
{ lib, python3Packages, fetchPypi, netcat-openbsd, procps, bash, nix-update-script }:
python3Packages.buildPythonApplication rec {
pname = "flashfocus";
···
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 = [