summary refs log tree commit diff
path: root/pkgs/applications/editors/tiled/default.nix
blob: a128899d24e7989c5ed47c836ebd72cf82b62244 (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
27
28
29
30
31
{ stdenv, fetchurl, pkgconfig, qmakeHook
, python, qtbase, qttools, zlib }:

let
#  qtEnv = with qt5; env "qt-${qtbase.version}" [ qtbase qttools ];
in stdenv.mkDerivation rec {
  name = "tiled-${version}";
  version = "0.16.1";

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

  nativeBuildInputs = [ pkgconfig qmakeHook ];
  buildInputs = [ python qtbase qttools ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Free, easy to use and flexible tile map editor";
    homepage = http://www.mapeditor.org/;
    license = with licenses; [
      bsd2	# libtiled and tmxviewer
      gpl2Plus	# all the rest
    ];
    platforms = platforms.linux;
    maintainers = with maintainers; [ nckx ];
  };
}