mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
Merge pull request #39009 from etu/browserpass-fix
browserpass: fix gnupg dependency issue
This commit is contained in:
commit
6bad8ddc82
@ -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 New Issue
Block a user