3
0
Fork 0
forked from mirrors/nixpkgs

browserpass: fix gnupg dependency issue

This commit is contained in:
Elis Hirwing 2018-04-16 16:49:01 +02:00
parent d17d4b70c9
commit be660b8f51
No known key found for this signature in database
GPG key ID: D57EFA625C9A925F

View file

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