2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2021-07-04 02:40:35 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-07-04 02:40:35 +00:00
|
|
|
pname = "openttd-nml";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.7.0";
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenTTD";
|
|
|
|
repo = "nml";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-tmipHRe6qXoSLNbc0OEKxBJZrmTX3DEiuSfQeWRj1sU=";
|
2021-07-04 02:40:35 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pillow
|
|
|
|
ply
|
|
|
|
];
|
2021-07-04 02:40:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "http://openttdcoop.org/";
|
2021-07-04 02:40:35 +00:00
|
|
|
description = "Compiler for OpenTTD NML files";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.gpl2;
|
2021-07-04 02:40:35 +00:00
|
|
|
maintainers = with maintainers; [ ToxicFrog ];
|
|
|
|
};
|
|
|
|
}
|