at 18.09-beta 44 lines 961 B view raw
1{ mkDerivation, stdenv, 2 fetchFromGitHub, 3 cmake, extra-cmake-modules, gnumake, 4 5 pass, pass-otp ? null, krunner, 6}: 7let 8 pname = "krunner-pass"; 9 version = "1.3.0"; 10in 11mkDerivation rec { 12 name = "${pname}-${version}"; 13 14 src = fetchFromGitHub { 15 owner = "akermu"; 16 repo = "krunner-pass"; 17 rev = "v${version}"; 18 sha256 = "032fs2174ls545kjixbhzyd65wgxkw4s5vg8b20irc5c9ak3pxm0"; 19 }; 20 21 buildInputs = [ 22 pass 23 pass-otp 24 krunner 25 ]; 26 27 nativeBuildInputs = [cmake extra-cmake-modules gnumake]; 28 29 patches = [ 30 ./pass-path.patch 31 ]; 32 33 CXXFLAGS = [ 34 ''-DNIXPKGS_PASS=\"${stdenv.lib.getBin pass}/bin/pass\"'' 35 ]; 36 37 meta = with stdenv.lib; { 38 description = "Integrates krunner with pass the unix standard password manager (https://www.passwordstore.org/)"; 39 homepage = https://github.com/akermu/krunner-pass; 40 license = licenses.gpl3; 41 maintainers = with maintainers; [ ysndr ]; 42 platforms = platforms.unix; 43 }; 44}