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; }