https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
15 lines
372 B
Nix
15 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 ];
|
|
})
|