mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
flashfocus: Use path for pidof
Add bash for the nc script shebang
This commit is contained in:
parent
b87c7d8ab5
commit
b7e0ea3a4a
@ -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 {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "flashfocus";
|
pname = "flashfocus";
|
||||||
@ -13,13 +13,20 @@ python3Packages.buildPythonApplication rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace bin/nc_flash_window \
|
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; [
|
nativeBuildInputs = with python3Packages; [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
bash
|
||||||
|
];
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"pyyaml"
|
"pyyaml"
|
||||||
"xcffib"
|
"xcffib"
|
||||||
|
Loading…
Reference in New Issue
Block a user