Merge pull request #85698 from ToxicFrog/openttd

add openttd `nml` and `grfcodec` tools
This commit is contained in:
Pavol Rusnak 2021-07-04 00:24:42 +02:00 committed by GitHub
commit 9a2966f7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 0 deletions

View File

@ -10644,6 +10644,12 @@
github = "totoroot";
githubId = 39650930;
};
ToxicFrog = {
email = "toxicfrog@ancilla.ca";
github = "ToxicFrog";
githubId = 90456;
name = "Rebecca (Bex) Kelly";
};
travisbhartwell = {
email = "nafai@travishartwell.net";
github = "travisbhartwell";

View File

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

View File

@ -0,0 +1,22 @@
{ stdenv, lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "openttd-nml";
version = "0.5.3";
src = fetchFromGitHub {
owner = "OpenTTD";
repo = "nml";
rev = version;
sha256 = "0kfnkshff3wrxsj1wpfbbw2mmgww2q80v63p5d2pp1f38x8j33w9";
};
propagatedBuildInputs = with python3Packages; [ply pillow];
meta = with lib; {
description = "Compiler for OpenTTD NML files";
homepage = "http://openttdcoop.org/";
license = licenses.gpl2;
maintainers = with maintainers; [ ToxicFrog ];
};
}

View File

@ -28971,6 +28971,8 @@ in
static = true;
};
};
openttd-grfcodec = callPackage ../games/openttd/grfcodec.nix {};
openttd-nml = callPackage ../games/openttd/nml.nix {};
opentyrian = callPackage ../games/opentyrian { };