Make buildable comet package.

This commit is contained in:
CronyAkatsuki 2024-04-01 17:19:49 +02:00
parent 24770b3677
commit 07547bc42f
3 changed files with 16 additions and 3 deletions

View File

@ -85,7 +85,9 @@
# pcsx2 # Playstation 2 emulator # pcsx2 # Playstation 2 emulator
# ppsspp-sdl-wayland # Playstation portable emulator # ppsspp-sdl-wayland # Playstation portable emulator
(callPackage ./modules/scripts.nix { inherit pkgs; }) # My scripts (callPackage ./modules/scripts.nix { inherit pkgs; }) # My scripts
# (callPackage ./modules/comet-gog.nix { inherit pkgs; }) # Comet for gog achievements (callPackage ./modules/comet-gog.nix {
inherit pkgs;
}) # Comet for gog achievements
]; ];
# Environmental variables I can't live without # Environmental variables I can't live without

View File

@ -12,9 +12,8 @@ rustPlatform.buildRustPackage rec {
fetchSubmodules = true; fetchSubmodules = true;
}; };
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
nativeBuildInputs = [ protobuf ]; nativeBuildInputs = [ protobuf ];
patches = [ ./patches/comet.patch ];
cargoLock.lockFile = src + /Cargo.lock; cargoLock.lockFile = src + /Cargo.lock;
} }

View File

@ -0,0 +1,12 @@
diff --git a/build.rs b/build.rs
index f6a0904..6252aec 100644
--- a/build.rs
+++ b/build.rs
@@ -3,7 +3,6 @@ use protobuf_codegen::Codegen;
fn main() {
Codegen::new()
.protoc()
- .protoc_path(&protoc_bin_vendored::protoc_bin_path().unwrap())
.includes(["proto"])
.input("proto/gog.protocols.pb.proto")
.input("proto/galaxy.protocols.webbroker_service.proto")