nixpkgs/pkgs/by-name/bu/butler/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-06-02 19:26:59 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2022-11-09 05:52:11 +00:00
, stdenv
, Cocoa
, fetchpatch
2022-06-02 19:26:59 +00: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 05:52:11 +00: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 19:26:59 +00:00
proxyVendor = true;
2024-04-05 21:00:33 +00:00
vendorHash = "sha256-GvUUCQ2BPW0HlXZljBWJ2Wyys9OEIM55dEWAa6J19Zg=";
2022-06-02 19:26:59 +00:00
doCheck = false;
meta = with lib; {
# butler cannot be build with Go >=1.21
# See https://github.com/itchio/butler/issues/256
# and https://github.com/itchio/dmcunrar-go/issues/1
# The dependency causing the issue is marked as 'no maintainence intended'.
# Last butler release is from 05/2021.
broken = true;
2022-06-02 19:26:59 +00:00
description = "Command-line itch.io helper";
homepage = "https://github.com/itchio/butler";
license = licenses.mit;
maintainers = with maintainers; [ martfont ];
};
}