2022-06-10 02:10:23 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2021-07-03 12:50:21 +00:00
|
|
|
|
2022-06-10 02:10:23 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-07-03 12:50:21 +00:00
|
|
|
pname = "openttd-nml";
|
2024-03-02 19:56:36 +00:00
|
|
|
version = "0.7.5";
|
2021-07-03 12:50:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenTTD";
|
|
|
|
repo = "nml";
|
2022-09-08 14:12:10 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-03-02 19:56:36 +00:00
|
|
|
hash = "sha256-OobTyPD7FtYMhJL3BDFXaZCOO2iPn8kjEw2OEdqQbr8=";
|
2021-07-03 12:50:21 +00:00
|
|
|
};
|
|
|
|
|
2022-06-10 02:10:23 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pillow
|
|
|
|
ply
|
|
|
|
];
|
2021-07-03 12:50:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-10 02:10:23 +00:00
|
|
|
homepage = "http://openttdcoop.org/";
|
2021-07-03 12:50:21 +00:00
|
|
|
description = "Compiler for OpenTTD NML files";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "nmlc";
|
2022-06-10 02:10:23 +00:00
|
|
|
license = licenses.gpl2;
|
2021-07-03 12:50:21 +00:00
|
|
|
maintainers = with maintainers; [ ToxicFrog ];
|
|
|
|
};
|
|
|
|
}
|