Skip to content

Commit

Permalink
onlykey-agent: unbundle libsodium
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Oct 11, 2024
1 parent 45b6389 commit ab2fde3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/o/onlykey-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class OnlykeyAgent < Formula
depends_on "cryptography"
depends_on "gnupg"
depends_on "hidapi"
depends_on "libusb"
depends_on "libsodium" # for pynacl
depends_on "libusb" # for pyusb
depends_on "[email protected]"

resource "aenum" do
Expand Down Expand Up @@ -192,7 +193,8 @@ class OnlykeyAgent < Formula
end

def install
ENV["HIDAPI_SYSTEM_HIDAPI"] = ENV["HIDAPI_WITH_LIBUSB"] = "1"
ENV["HIDAPI_SYSTEM_HIDAPI"] = "1"
ENV["SODIUM_INSTALL"] = "system"
venv = virtualenv_install_with_resources without: "python-daemon"

# Workaround breaking change in `setuptools`: https://pagure.io/python-daemon/issue/94
Expand Down

0 comments on commit ab2fde3

Please sign in to comment.