treewide: use `addBinToPathHook`, minor cleanups (#379187)
[NixPkgs.git] / pkgs / by-name / co / comet-gog / package.nix
blob0de956c490f2ecd68143de7378091a708d89dff2
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   protobuf,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "comet-gog";
10   version = "0.2.0";
12   src = fetchFromGitHub {
13     owner = "imLinguin";
14     repo = "comet";
15     tag = "v${version}";
16     hash = "sha256-LAEt2i/SRABrz+y2CTMudrugifLgHNxkMSdC8PXYF0E=";
17     fetchSubmodules = true;
18   };
20   cargoHash = "sha256-eXPVImew1EOT1DcoeIVPhqQ2buqHnlpqT6A0eaqG7tI=";
22   # error: linker `aarch64-linux-gnu-gcc` not found
23   postPatch = ''
24     rm .cargo/config.toml
25   '';
27   env.PROTOC = lib.getExe' protobuf "protoc";
29   meta = {
30     changelog = "https://github.com/imLinguin/comet/releases/tag/v${version}";
31     description = "Open Source implementation of GOG Galaxy's Communication Service";
32     homepage = "https://github.com/imLinguin/comet";
33     license = lib.licenses.gpl3Plus;
34     mainProgram = "comet";
35     maintainers = with lib.maintainers; [ tomasajt ];
36   };