nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 protobuf,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "comet-gog";
10 version = "0.3.1";
11
12 src = fetchFromGitHub {
13 owner = "imLinguin";
14 repo = "comet";
15 tag = "v${version}";
16 hash = "sha256-asg2xp9A5abmsF+CgOa+ScK2sQwSNFQXD5Qnm76Iyhg=";
17 fetchSubmodules = true;
18 };
19
20 cargoHash = "sha256-K0lQuk2PBwnVlkRpYNo4Z7to/Lx2fY6RIlkgmMjvEtc=";
21
22 # error: linker `aarch64-linux-gnu-gcc` not found
23 postPatch = ''
24 rm .cargo/config.toml
25 '';
26
27 env.PROTOC = lib.getExe' protobuf "protoc";
28
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 };
37}