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";
|
2022-01-19 07:14:20 +00:00
|
|
|
version = "0.6.1";
|
2021-07-03 12:50:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenTTD";
|
|
|
|
repo = "nml";
|
|
|
|
rev = version;
|
2022-06-10 02:10:23 +00:00
|
|
|
hash = "sha256-AmJrPyzPMe2F8geJhhRpO8aj467n1wqldC9iuzElFnw=";
|
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";
|
2022-06-10 02:10:23 +00:00
|
|
|
license = licenses.gpl2;
|
2021-07-03 12:50:21 +00:00
|
|
|
maintainers = with maintainers; [ ToxicFrog ];
|
|
|
|
};
|
|
|
|
}
|