nixpkgs/pkgs/games/openttd/jgrpp.nix
Stefan Frijters 6fc9e4b700
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)
```
2022-04-03 13:52:24 +02:00

16 lines
372 B
Nix

{ fetchFromGitHub, openttd, zstd, ... }:
openttd.overrideAttrs (oldAttrs: rec {
pname = "openttd-jgrpp";
version = "0.47.1";
src = fetchFromGitHub rec {
owner = "JGRennison";
repo = "OpenTTD-patches";
rev = "jgrpp-${version}";
hash = "sha256-AMd2KXy/ODByeV9CkEd51KbE/+fZ8Us3WzsWCnn7nh0=";
};
buildInputs = oldAttrs.buildInputs ++ [ zstd ];
})