diff options
author | Colin L Rice <colin@daedrum.net> | 2020-04-30 21:59:00 -0400 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-05-14 07:22:21 +0100 |
commit | d6162dab509ababe7c3ce83c17a3ef63855e0832 (patch) | |
tree | 671629ece52745e2498c9debb7b6ccb4e7092efd /pkgs/applications/blockchains | |
parent | a0ddea1d6a9f07b0631e0dbcd3b7240d2eb82ef7 (diff) |
go-modules: Update files to use vendorSha256
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r-- | pkgs/applications/blockchains/go-ethereum.nix | 16 | ||||
-rw-r--r-- | pkgs/applications/blockchains/lnd.nix | 4 |
2 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/applications/blockchains/go-ethereum.nix b/pkgs/applications/blockchains/go-ethereum.nix index 6a443571d0f28..15583d0a1efd8 100644 --- a/pkgs/applications/blockchains/go-ethereum.nix +++ b/pkgs/applications/blockchains/go-ethereum.nix @@ -11,7 +11,21 @@ buildGoModule rec { sha256 = "1yqqflp73yvjy6bp05xd1nv5fc6p1nx7g4spbssxf3ws96pdh425"; }; - modSha256 = "07xrw3fivfpbkg4mp8ghrj1bishfas82dbd780fymgs2h74iigf3"; + usb = fetchFromGitHub { + owner = "karalabe"; + repo = "usb"; + rev = "911d15fe12a9c411cf5d0dd5635231c759399bed"; + sha256 = "0asd5fz2rhzkjmd8wjgmla5qmqyz4jaa6qf0n2ycia16jsck6wc2"; + }; + + vendorSha256 = "12aw8b8ci7nssidh1yz8d2hk43csdacq5jca9y70rjakpl3zndsz"; + + overrideModAttrs = (_: { + postBuild = '' + cp -r --reflink=auto ${usb}/libusb vendor/github.com/karalabe/usb + cp -r --reflink=auto ${usb}/hidapi vendor/github.com/karalabe/usb + ''; + }); subPackages = [ "cmd/abidump" diff --git a/pkgs/applications/blockchains/lnd.nix b/pkgs/applications/blockchains/lnd.nix index aff38e242f81c..1f249223df58d 100644 --- a/pkgs/applications/blockchains/lnd.nix +++ b/pkgs/applications/blockchains/lnd.nix @@ -11,7 +11,7 @@ buildGoModule rec { sha256 = "1amciz924s2h6qhy7w34jpv1jc25p5ayfxzvjph6hhx0bccrm88w"; }; - modSha256 = "15i4h3pkvyav9qsbfinzifram0knkylg24j6j0mxs4bnj80j4ycm"; + vendorSha256 = "1iyghg11cxvbzi0gl40fvv8pl3d3k52j179w3x5m1f09r5ji223y"; subPackages = ["cmd/lncli" "cmd/lnd"]; @@ -21,4 +21,4 @@ buildGoModule rec { license = lib.licenses.mit; maintainers = with maintainers; [ cypherpunk2140 ]; }; -} +} \ No newline at end of file |