2022-06-02 21:26:59 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2022-11-09 06:52:11 +01:00
|
|
|
, stdenv
|
|
|
|
, Cocoa
|
|
|
|
, fetchpatch
|
2022-06-02 21:26:59 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "butler";
|
|
|
|
version = "15.21.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itchio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-vciSmXR3wI3KcnC+Uz36AgI/WUfztA05MJv1InuOjJM=";
|
|
|
|
};
|
|
|
|
|
2022-11-09 06:52:11 +01:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-06-02 21:26:59 +02:00
|
|
|
proxyVendor = true;
|
|
|
|
|
2023-09-13 06:44:46 +02:00
|
|
|
vendorHash = "sha256-CtBwc5mcgLvl2Bvg5gI+ULJMQEEibx1aN3IpmRNUtwE=";
|
2022-06-02 21:26:59 +02:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line itch.io helper";
|
|
|
|
homepage = "https://github.com/itchio/butler";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ martfont ];
|
|
|
|
};
|
|
|
|
}
|