Merge pull request #221310 from uninsane/pr/sane/cross-browserpass

browserpass: support cross compilation by only conditionally running tests
This commit is contained in:
Nick Cao 2023-04-08 15:29:42 +08:00 committed by GitHub
commit de33bfe022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,11 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, gnupg }: { lib
, stdenv
, buildGoModule
, fetchFromGitHub
, gnupg
, makeWrapper
}:
buildGoModule rec { buildGoModule rec {
pname = "browserpass"; pname = "browserpass";
version = "3.1.0"; version = "3.1.0";
@ -14,7 +21,7 @@ buildGoModule rec {
vendorHash = "sha256-CjuH4ANP2bJDeA+o+1j+obbtk5/NVLet/OFS3Rms4r0="; vendorHash = "sha256-CjuH4ANP2bJDeA+o+1j+obbtk5/NVLet/OFS3Rms4r0=";
doCheck = false; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
postPatch = '' postPatch = ''
# Because this Makefile will be installed to be used by the user, patch # Because this Makefile will be installed to be used by the user, patch
@ -32,9 +39,11 @@ buildGoModule rec {
''; '';
buildPhase = '' buildPhase = ''
make make browserpass
''; '';
checkTarget = "test";
installPhase = '' installPhase = ''
make install make install