3
0
Fork 0
forked from mirrors/nixpkgs

krunner-pass: init at version 1.3.0

This commit is contained in:
Yannik Sander 2018-03-20 22:42:08 +01:00 committed by adisbladis
parent 09b16a92af
commit 0c95dee8cb
No known key found for this signature in database
GPG key ID: ED58F95069B004F5
4 changed files with 64 additions and 0 deletions

View file

@ -3986,6 +3986,11 @@
github = "yrashk";
name = "Yurii Rashkovskii";
};
ysndr = {
email = "me@ysndr.de";
github = "ysndr";
name = "Yannik Sander";
};
yuriaisaka = {
email = "yuri.aisaka+nix@gmail.com";
github = "yuriaisaka";

View file

@ -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;
};
}

View file

@ -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) {

View file

@ -3176,6 +3176,8 @@ with pkgs;
krename = libsForQt5.callPackage ../applications/misc/krename { };
krunner-pass = libsForQt5.callPackage ../tools/security/krunner-pass { };
kronometer = libsForQt5.callPackage ../tools/misc/kronometer { };
elisa = libsForQt5.callPackage ../applications/audio/elisa { };