{ fetchFromGitHub, openttd, zstd, ... }: openttd.overrideAttrs (oldAttrs: rec { pname = "openttd-jgrpp"; version = "0.62.0"; src = fetchFromGitHub rec { owner = "JGRennison"; repo = "OpenTTD-patches"; rev = "jgrpp-${version}"; hash = "sha256-rl0GKKROteP2orT5Z/DHAQPkJFQu/lddQULYfq/x8w8="; }; buildInputs = oldAttrs.buildInputs ++ [ zstd ]; meta = { homepage = "https://github.com/JGRennison/OpenTTD-patches"; changelog = "https://github.com/JGRennison/OpenTTD-patches/blob/jgrpp-${version}/jgrpp-changelog.md"; mainProgram = "openttd"; }; })