Merge pull request #26393 from peterhoeg/f/pass
pass: add plugins to support importing and updating
This commit is contained in:
commit
e760337a22
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchurl
|
{ stdenv, lib, fetchurl, fetchFromGitHub
|
||||||
, coreutils, gnused, getopt, git, tree, gnupg, which, procps, qrencode
|
, coreutils, gnused, getopt, git, tree, gnupg, which, procps, qrencode
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
|
||||||
@ -12,7 +12,17 @@ assert x11Support -> xclip != null
|
|||||||
&& xdotool != null
|
&& xdotool != null
|
||||||
&& dmenu != null;
|
&& dmenu != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
plugins = map (p: (fetchFromGitHub {
|
||||||
|
owner = "roddhjav";
|
||||||
|
repo = "pass-${p.name}";
|
||||||
|
inherit (p) rev sha256;
|
||||||
|
})) [
|
||||||
|
{ name = "import"; rev = "491935bd275f29ceac2b876b3a288011d1ce31e7"; sha256 = "02mbh05ab8h7kc30hz718d1d1vkjz43b96c7p0xnd92610d2q66q"; }
|
||||||
|
{ name = "update"; rev = "cf576c9036fd18efb9ed29e0e9f811207b556fde"; sha256 = "1hhbrg6a2walrvla6q4cd3pgrqbcrf9brzjkb748735shxfn52hd"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
version = "1.7.1";
|
version = "1.7.1";
|
||||||
name = "password-store-${version}";
|
name = "password-store-${version}";
|
||||||
|
|
||||||
@ -29,6 +39,13 @@ stdenv.mkDerivation rec {
|
|||||||
installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ];
|
installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# plugins
|
||||||
|
${stdenv.lib.concatStringsSep "\n" (map (plugin: ''
|
||||||
|
pushd ${plugin}
|
||||||
|
PREFIX=$out make install
|
||||||
|
popd
|
||||||
|
'') plugins)}
|
||||||
|
|
||||||
# Install Emacs Mode. NOTE: We can't install the necessary
|
# Install Emacs Mode. NOTE: We can't install the necessary
|
||||||
# dependencies (s.el and f.el) here. The user has to do this
|
# dependencies (s.el and f.el) here. The user has to do this
|
||||||
# himself.
|
# himself.
|
||||||
|
Loading…
Reference in New Issue
Block a user