{ pkgs, ... }: with pkgs; rustPlatform.buildRustPackage rec { pname = "comet-gog"; version = "e313c8a"; src = fetchFromGitHub { owner = "imLinguin"; repo = "comet"; rev = "95753236846cbd0980e679c4dbe73fb5908a6956"; hash = "sha256-5PjBOd6RIvnd41PjiGZKl+nq9ZKBZHsXNjYdSsnsu+w="; fetchSubmodules = true; }; PROTOC = "${protobuf}/bin/protoc"; PROTOC_INCLUDE = "${protobuf}/include"; nativeBuildInputs = [ protobuf ]; cargoLock.lockFile = src + /Cargo.lock; }