@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub
2+, pkgconfig
3+, freetype, giflib, gtk2, lcms2, libjpeg, libpng, libtiff, openjpeg, gifsicle
4+}:
5+
6+stdenv.mkDerivation rec {
7+ p_name = "mtPaint";
8+ ver_maj = "3.49";
9+ ver_min = "12";
10+ name = "${p_name}-${ver_maj}.${ver_min}";
11+
12+ src = fetchFromGitHub {
13+ owner = "wjaguar";
14+ repo = p_name;
15+ rev = "6aed1b0441f99055fc7d475942f8bd5cb23c41f8";
16+ sha256 = "0bvf623g0n2ifijcxv1nw0z3wbs2vhhdky4n04ywsbjlykm44nd1";
17+ };
18+
19+ buildInputs = [
20+ pkgconfig
21+ freetype giflib gtk2 lcms2 libjpeg libpng libtiff openjpeg gifsicle
22+ ];
23+
24+ meta = {
25+ description = "A simple GTK+1/2 painting program";
26+ longDescription = ''
27+ mtPaint is a simple GTK+1/2 painting program designed for
28+ creating icons and pixel based artwork. It can edit indexed palette
29+ or 24 bit RGB images and offers basic painting and palette manipulation
30+ tools. It also has several other more powerful features such as channels,
31+ layers and animation.
32+ Due to its simplicity and lack of dependencies it runs well on
33+ GNU/Linux, Windows and older PC hardware.
34+ '';
35+ homepage = "http://mtpaint.sourceforge.net/";
36+ license = stdenv.lib.licenses.gpl3;
37+ platforms = stdenv.lib.platforms.linux;
38+ maintainers = [ stdenv.lib.maintainers.vklquevs ];
39+ };
40+}
41+