Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / itch / butler.nix
blobcbd6b8aef9365154d75c2c557cfe9e30a9cb9905
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , stdenv
5 , Cocoa
6 , fetchpatch
7 }:
9 buildGoModule rec {
10   pname = "butler";
11   version = "15.21.0";
13   src = fetchFromGitHub {
14     owner = "itchio";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "sha256-vciSmXR3wI3KcnC+Uz36AgI/WUfztA05MJv1InuOjJM=";
18   };
20   buildInputs = lib.optionals stdenv.isDarwin [
21     Cocoa
22   ];
24   patches = [
25     # update x/sys dependency for darwin build https://github.com/itchio/butler/pull/245
26     (fetchpatch {
27       url = "https://github.com/itchio/butler/pull/245/commits/ef651d373e3061fda9692dd44ae0f7ce215e9655.patch";
28       hash = "sha256-rZZn/OGiv3mRyy89uORyJ99zWN21kZCCQAlFvSKxlPU=";
29     })
30   ];
32   proxyVendor = true;
34   vendorHash = "sha256-CtBwc5mcgLvl2Bvg5gI+ULJMQEEibx1aN3IpmRNUtwE=";
36   doCheck = false;
38   meta = with lib; {
39     description = "Command-line itch.io helper";
40     homepage = "https://github.com/itchio/butler";
41     license = licenses.mit;
42     maintainers = with maintainers; [ martfont ];
43   };