flashfocus: Use path for pidof (#353546)

This commit is contained in:
Artturin 2024-11-05 17:53:55 +02:00 committed by GitHub
commit 3f1b3cc985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ 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"