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)
```
This commit is contained in:
Stefan Frijters 2022-04-03 13:52:19 +02:00
parent 3d16e9db85
commit 6fc9e4b700
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -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 ];
})