diff options
author | Rebecca Kelly <bk@ancilla.ca> | 2021-07-03 08:49:54 -0400 |
---|---|---|
committer | Rebecca Kelly <btk@google.com> | 2021-07-03 17:54:01 -0400 |
commit | 277d1a156909340a025edf242e8915d570df350b (patch) | |
tree | c193dead80d409472c4daaed6c4d0d53999c965e /pkgs/games/openttd | |
parent | 29464942e2b19977e1ffb98d5b807ed131f35df9 (diff) |
openttd-grfcodec: init at 6.0.6+git20210310
N.b. 6.0.6 release version is ~5 years old now, and doesn't build under gcc10
Diffstat (limited to 'pkgs/games/openttd')
-rw-r--r-- | pkgs/games/openttd/grfcodec.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/games/openttd/grfcodec.nix b/pkgs/games/openttd/grfcodec.nix new file mode 100644 index 0000000000000..544cf4f06c43b --- /dev/null +++ b/pkgs/games/openttd/grfcodec.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, fetchFromGitHub, boost, cmake, git }: + +stdenv.mkDerivation rec { + pname = "openttd-grfcodec"; + version = "unstable-2021-03-10"; + + src = fetchFromGitHub { + owner = "OpenTTD"; + repo = "grfcodec"; + rev = "045774dee7cab1a618a3e0d9b39bff78a12b6efa"; + sha256 = "0b4xnnkqc01d3r834lhkq744ymar6c8iyxk51wc4c7hvz0vp9vmy"; + }; + + buildInputs = [boost]; + nativeBuildInputs = [cmake git]; + + installPhase = '' + mkdir -p $out/bin + cp -a grfcodec grfid grfstrip nforenum $out/bin/ + ''; + + meta = with lib; { + description = "Low-level (dis)assembler and linter for OpenTTD GRF files"; + homepage = "http://openttd.org/"; + license = licenses.gpl2; + maintainers = with maintainers; [ ToxicFrog ]; + }; +} |