yubikey-manager: patch path of pkill binary (#138941)

(cherry picked from commit 36304fc89dffe99fc1e05e2b9865fbf562d43650)

Co-authored-by: Yureka <yuka@yuka.dev>
This commit is contained in:
Andrea Scarpino 2021-10-12 17:21:29 +02:00 committed by GitHub
parent 79c970a7bb
commit f134749c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{ python3Packages, fetchurl, lib,
yubikey-personalization, libu2f-host, libusb1 }:
yubikey-personalization, libu2f-host, libusb1, procps }:
python3Packages.buildPythonPackage rec {
pname = "yubikey-manager";
@ -10,6 +10,11 @@ python3Packages.buildPythonPackage rec {
hash = "sha256-OxbKo5vwOBabU6/2hO4RMWiifo4IVIxz+DlcwP9xO/E=";
};
postPatch = ''
substituteInPlace "ykman/pcsc/__init__.py" \
--replace '/usr/bin/pkill' '${procps}/bin/pkill'
'';
propagatedBuildInputs =
with python3Packages; [
click