From d16d263f2b7fe0087e9629b2b0818f3b4d65e6fb Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Fri, 29 Mar 2024 14:50:41 +0100 Subject: [PATCH] Still doesn't wan't to build. --- home-manager/modules/comet-gog.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/comet-gog.nix b/home-manager/modules/comet-gog.nix index 35ce6e3..737b43e 100644 --- a/home-manager/modules/comet-gog.nix +++ b/home-manager/modules/comet-gog.nix @@ -3,6 +3,7 @@ with pkgs; rustPlatform.buildRustPackage rec { pname = "comet-gog"; version = "e313c8a"; + src = fetchFromGitHub { owner = "imLinguin"; repo = "comet"; @@ -10,7 +11,10 @@ rustPlatform.buildRustPackage rec { hash = "sha256-ctU9yhnlS8x4xY2iUaG7NvPJB4+vJTXzZF2llof4NyM="; fetchSubmodules = true; }; - cargoLock.lockFile = src + /Cargo.lock; - buildInputs = [ protobuf ]; + PROTOC = "${protobuf}/bin/protoc"; + PROTOC_INCLUDE = "${protobuf}/include"; + nativeBuildInputs = [ protobuf ]; + + cargoLock.lockFile = src + /Cargo.lock; }