nixpkgs/pkgs/games/openttd/nml.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
609 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "openttd-nml";
version = "0.7.5";
src = fetchFromGitHub {
owner = "OpenTTD";
repo = "nml";
rev = "refs/tags/${version}";
hash = "sha256-OobTyPD7FtYMhJL3BDFXaZCOO2iPn8kjEw2OEdqQbr8=";
};
propagatedBuildInputs = with python3.pkgs; [
pillow
ply
];
meta = with lib; {
homepage = "http://openttdcoop.org/";
description = "Compiler for OpenTTD NML files";
mainProgram = "nmlc";
license = licenses.gpl2;
maintainers = with maintainers; [ ToxicFrog ];
};
}