Merge pull request #194552 from tjni/adrgen

adrgen: fix darwin build
This commit is contained in:
Nikolay Korotkiy 2022-10-06 13:47:42 +03:00 committed by GitHub
commit 95835729fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
, testers
, adrgen
}:
@ -13,10 +14,19 @@ buildGoModule rec {
owner = "asiermarques";
repo = "adrgen";
rev = "v${version}";
sha256 = "sha256-2ZE/orsfwL59Io09c4yfXt2enVmpSM/QHlUMgyd9RYQ=";
hash = "sha256-2ZE/orsfwL59Io09c4yfXt2enVmpSM/QHlUMgyd9RYQ=";
};
vendorSha256 = "sha256-aDtUD+KKKSE0TpSi4+6HXSBMqF/TROZZhT0ox3a8Idk=";
patches = [
# https://github.com/asiermarques/adrgen/pull/14
(fetchpatch {
name = "update-x-sys-for-go-1.18-on-aarch64-darwin.patch";
url = "https://github.com/asiermarques/adrgen/commit/485dc383106467d1029ee6d92c9bcbc3c2281626.patch";
hash = "sha256-38ktHrRgW5ysQmafvFthNtkZ6nnM61z4yEA7wUGmWb4=";
})
];
vendorHash = "sha256-RXwwv3Q/kQ6FondpiUm5XZogAVK2aaVmKu4hfr+AnAM=";
passthru.tests.version = testers.testVersion {
package = adrgen;