forked from mirrors/nixpkgs
browserpass: fix gnupg dependency issue
This commit is contained in:
parent
d17d4b70c9
commit
be660b8f51
|
@ -1,5 +1,5 @@
|
|||
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, gnupg }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "browserpass-${version}";
|
||||
|
@ -16,6 +16,11 @@ buildGoPackage rec {
|
|||
sha256 = "0wszjpxfa0krr2zdx7a33vl1r86k74dpy5c940r6ww1zbgqzcibg";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace browserpass.go \
|
||||
--replace /usr/local/bin/gpg ${gnupg}/bin/gpg
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
host_file="$bin/bin/browserpass"
|
||||
mkdir -p "$bin/etc"
|
||||
|
|
Loading…
Reference in a new issue