mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
commit
95835729fb
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
, testers
|
, testers
|
||||||
, adrgen
|
, adrgen
|
||||||
}:
|
}:
|
||||||
@ -13,10 +14,19 @@ buildGoModule rec {
|
|||||||
owner = "asiermarques";
|
owner = "asiermarques";
|
||||||
repo = "adrgen";
|
repo = "adrgen";
|
||||||
rev = "v${version}";
|
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 {
|
passthru.tests.version = testers.testVersion {
|
||||||
package = adrgen;
|
package = adrgen;
|
||||||
|
Loading…
Reference in New Issue
Block a user