Make buildable comet package.
This commit is contained in:
parent
24770b3677
commit
07547bc42f
@ -85,7 +85,9 @@
|
||||
# pcsx2 # Playstation 2 emulator
|
||||
# ppsspp-sdl-wayland # Playstation portable emulator
|
||||
(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
|
||||
|
@ -12,9 +12,8 @@ rustPlatform.buildRustPackage rec {
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
PROTOC = "${protobuf}/bin/protoc";
|
||||
PROTOC_INCLUDE = "${protobuf}/include";
|
||||
nativeBuildInputs = [ protobuf ];
|
||||
patches = [ ./patches/comet.patch ];
|
||||
|
||||
cargoLock.lockFile = src + /Cargo.lock;
|
||||
}
|
||||
|
12
home-manager/modules/patches/comet.patch
Normal file
12
home-manager/modules/patches/comet.patch
Normal 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")
|
Loading…
Reference in New Issue
Block a user