Merge pull request #39009 from etu/browserpass-fix

browserpass: fix gnupg dependency issue
This commit is contained in:
Jörg Thalheim 2018-04-16 22:14:34 +01:00 committed by GitHub
commit 6bad8ddc82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 # This file was generated by https://github.com/kamilchm/go2nix v1.2.1
{ stdenv, buildGoPackage, fetchFromGitHub }: { stdenv, buildGoPackage, fetchFromGitHub, gnupg }:
buildGoPackage rec { buildGoPackage rec {
name = "browserpass-${version}"; name = "browserpass-${version}";
@ -16,6 +16,11 @@ buildGoPackage rec {
sha256 = "0wszjpxfa0krr2zdx7a33vl1r86k74dpy5c940r6ww1zbgqzcibg"; sha256 = "0wszjpxfa0krr2zdx7a33vl1r86k74dpy5c940r6ww1zbgqzcibg";
}; };
postPatch = ''
substituteInPlace browserpass.go \
--replace /usr/local/bin/gpg ${gnupg}/bin/gpg
'';
postInstall = '' postInstall = ''
host_file="$bin/bin/browserpass" host_file="$bin/bin/browserpass"
mkdir -p "$bin/etc" mkdir -p "$bin/etc"