browserpass: specify sane-secrets-unlock more directly

This commit is contained in:
Colin 2023-06-07 07:47:55 +00:00
parent 4d63b81b05
commit 34ed201aff
2 changed files with 6 additions and 2 deletions

View File

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

View File

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