summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Scarpino <andrea@scarpino.dev>2021-10-12 17:21:29 +0200
committerGitHub <noreply@github.com>2021-10-12 11:21:29 -0400
commitf134749c7e2d25042f1cfe8fc8700c8c7a6093f6 (patch)
tree63dee68c0a76ad3db194d217b5d1975559cf41a4
parentMerge pull request #141277 from NixOS/backport-140723-to-release-21.05 (diff)
downloadnixpkgs-f134749c7e2d25042f1cfe8fc8700c8c7a6093f6.tar.gz
yubikey-manager: patch path of pkill binary (#138941)
(cherry picked from commit 36304fc89dffe99fc1e05e2b9865fbf562d43650) Co-authored-by: Yureka <yuka@yuka.dev>
-rw-r--r--pkgs/tools/misc/yubikey-manager/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/misc/yubikey-manager/default.nix b/pkgs/tools/misc/yubikey-manager/default.nix
index 12b3aa0f05f6..c50100eeb84c 100644
--- a/pkgs/tools/misc/yubikey-manager/default.nix
+++ b/pkgs/tools/misc/yubikey-manager/default.nix
@@ -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