butler: fix darwin build

This commit is contained in:
Stanisław Pitucha 2022-11-09 16:52:11 +11:00 committed by Stanisław Pitucha
parent 61dcd8abc4
commit d4965f6ef8
2 changed files with 19 additions and 2 deletions

View file

@ -1,6 +1,9 @@
{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
, Cocoa
, fetchpatch
}:
buildGoModule rec {
@ -14,9 +17,21 @@ buildGoModule rec {
sha256 = "sha256-vciSmXR3wI3KcnC+Uz36AgI/WUfztA05MJv1InuOjJM=";
};
buildInputs = lib.optionals stdenv.isDarwin [
Cocoa
];
patches = [
# update x/sys dependency for darwin build https://github.com/itchio/butler/pull/245
(fetchpatch {
url = "https://github.com/itchio/butler/pull/245/commits/ef651d373e3061fda9692dd44ae0f7ce215e9655.patch";
hash = "sha256-rZZn/OGiv3mRyy89uORyJ99zWN21kZCCQAlFvSKxlPU=";
})
];
proxyVendor = true;
vendorSha256 = "sha256-EIl0ZFDKbZopUR22hp5a2vRUu0O1h1O953NrtoNa2x8=";
vendorSha256 = "sha256-CtBwc5mcgLvl2Bvg5gI+ULJMQEEibx1aN3IpmRNUtwE=";
doCheck = false;

View file

@ -1285,7 +1285,9 @@ with pkgs;
asleap = callPackage ../tools/networking/asleap { };
butler = callPackage ../games/itch/butler.nix { };
butler = callPackage ../games/itch/butler.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
cf-vault = callPackage ../tools/admin/cf-vault { };