From 6fc9e4b7008cff19718f5a1ebf0331e1910e1530 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 3 Apr 2022 13:52:19 +0200 Subject: [PATCH] openttd-jgrpp: Add optional but recommended zstd dependency Fixes ``` CMake Warning at cmake/LinkPackage.cmake:23 (message): ZSTD not found; compiling OpenTTD without ZSTD is not recommended Call Stack (most recent call first): CMakeLists.txt:330 (link_package) ``` --- pkgs/games/openttd/jgrpp.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/games/openttd/jgrpp.nix b/pkgs/games/openttd/jgrpp.nix index 0d8263398a92..a0c70e463b20 100644 --- a/pkgs/games/openttd/jgrpp.nix +++ b/pkgs/games/openttd/jgrpp.nix @@ -1,4 +1,4 @@ -{ fetchFromGitHub, openttd, ... }: +{ fetchFromGitHub, openttd, zstd, ... }: openttd.overrideAttrs (oldAttrs: rec { pname = "openttd-jgrpp"; @@ -10,4 +10,6 @@ openttd.overrideAttrs (oldAttrs: rec { rev = "jgrpp-${version}"; hash = "sha256-AMd2KXy/ODByeV9CkEd51KbE/+fZ8Us3WzsWCnn7nh0="; }; + + buildInputs = oldAttrs.buildInputs ++ [ zstd ]; })