summary refs log tree commit diff
path: root/pkgs/applications/editors/tiled/default.nix
blob: e4b2f0461c2461919c6d5a372ffc86365ec676fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, qtbase, qttools, qmakeHook, pkgconfig, python }:

let
  version = "0.12.3";
  sha256 = "001j4lvb5d9h3m6vgz2na07637x6xg4bdvxi2hg4a0j9rikb4y40";
in

stdenv.mkDerivation rec {
  name = "tiled-${version}";

  src = fetchurl {
    url = "https://github.com/bjorn/tiled/archive/v${version}.tar.gz";
    inherit sha256;
  };

  buildInputs = [ qtbase qttools qmakeHook pkgconfig python ];

  meta = {
    description = "A free, easy to use and flexible tile map editor";
    homepage = "http://www.mapeditor.org/";
    # libtiled and tmxviewer is licensed under 2-calause BSD license.
    # The rest is GPL2 or later.
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.linux;
  };
}