diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2021-07-04 00:24:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 00:24:42 +0200 |
commit | 9a2966f7b987a12281e63d6739b4bcbff302933a (patch) | |
tree | 74bad59372c3eeb59ff1245da188fc11116c5762 /pkgs/games | |
parent | e23d2f956cdaf5a3db2faa57d7e98554c750022f (diff) | |
parent | 82c4085089b1ec7e5889bf2e9ef31867f48e8a19 (diff) | |
download | nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar.gz nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar.bz2 nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar.lz nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar.xz nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.tar.zst nixpkgs-9a2966f7b987a12281e63d6739b4bcbff302933a.zip |
Merge pull request #85698 from ToxicFrog/openttd
add openttd `nml` and `grfcodec` tools
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/openttd/grfcodec.nix | 28 | ||||
-rw-r--r-- | pkgs/games/openttd/nml.nix | 22 |
2 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/games/openttd/grfcodec.nix b/pkgs/games/openttd/grfcodec.nix new file mode 100644 index 00000000000..544cf4f06c4 --- /dev/null +++ b/pkgs/games/openttd/grfcodec.nix @@ -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 ]; + }; +} diff --git a/pkgs/games/openttd/nml.nix b/pkgs/games/openttd/nml.nix new file mode 100644 index 00000000000..094330faffb --- /dev/null +++ b/pkgs/games/openttd/nml.nix @@ -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 ]; + }; +} |