browserpass: specify sane-secrets-unlock more directly
This commit is contained in:
parent
4d63b81b05
commit
34ed201aff
|
@ -16,7 +16,7 @@ let
|
|||
src = ./.;
|
||||
|
||||
inherit bash gnused sops;
|
||||
sane_scripts = sane-scripts;
|
||||
sane_secrets_unlock = sane-scripts.secrets-unlock; # XXX: must be snake_case
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
substituteAll ${./sops-gpg-adapter} $out/bin/gpg
|
||||
|
@ -45,4 +45,8 @@ in
|
|||
mkdir -p $out/lib/mozilla/native-messaging-hosts
|
||||
ln -s $out/lib/browserpass/hosts/firefox/*.json $out/lib/mozilla/native-messaging-hosts
|
||||
'';
|
||||
|
||||
passthru = (upstream.passthru or {}) // {
|
||||
inherit sane-browserpass-gpg;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -8,7 +8,7 @@ then
|
|||
fi
|
||||
|
||||
# ensure the secret store is unlocked
|
||||
@sane_scripts@/bin/sane-secrets-unlock
|
||||
@sane_secrets_unlock@/bin/sane-secrets-unlock
|
||||
|
||||
# using exec here forwards our stdin
|
||||
# browserpass parses the response in
|
||||
|
|
Loading…
Reference in New Issue