parent
09b16a92af
commit
0c95dee8cb
@ -0,0 +1,44 @@ |
||||
{ mkDerivation, stdenv, |
||||
fetchFromGitHub, |
||||
cmake, extra-cmake-modules, gnumake, |
||||
|
||||
pass, pass-otp ? null, krunner, |
||||
}: |
||||
let |
||||
pname = "krunner-pass"; |
||||
version = "1.3.0"; |
||||
in |
||||
mkDerivation rec { |
||||
name = "${pname}-${version}"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "akermu"; |
||||
repo = "krunner-pass"; |
||||
rev = "v${version}"; |
||||
sha256 = "032fs2174ls545kjixbhzyd65wgxkw4s5vg8b20irc5c9ak3pxm0"; |
||||
}; |
||||
|
||||
buildInputs = [ |
||||
pass |
||||
pass-otp |
||||
krunner |
||||
]; |
||||
|
||||
nativeBuildInputs = [cmake extra-cmake-modules gnumake]; |
||||
|
||||
patches = [ |
||||
./pass-path.patch |
||||
]; |
||||
|
||||
CXXFLAGS = [ |
||||
''-DNIXPKGS_PASS=\"${stdenv.lib.getBin pass}/bin/pass\"'' |
||||
]; |
||||
|
||||
meta = with stdenv.lib; { |
||||
description = "Integrates krunner with pass the unix standard password manager (https://www.passwordstore.org/)"; |
||||
homepage = https://github.com/akermu/krunner-pass; |
||||
license = licenses.gpl3; |
||||
maintainers = with maintainers; [ ysndr ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
@ -0,0 +1,13 @@ |
||||
diff --git a/pass.cpp b/pass.cpp
|
||||
index c02f9d0..85c5b99 100644
|
||||
--- a/pass.cpp
|
||||
+++ b/pass.cpp
|
||||
@@ -193,7 +193,7 @@ void Pass::run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &m
|
||||
} else {
|
||||
args << "show" << match.text();
|
||||
}
|
||||
- pass->start("pass", args);
|
||||
+ pass->start(NIXPKGS_PASS, args);
|
||||
|
||||
connect(pass, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished),
|
||||
[=](int exitCode, QProcess::ExitStatus exitStatus) {
|
Loading…
Reference in new issue