about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/mtpaint/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/graphics/mtpaint/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/graphics/mtpaint/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/graphics/mtpaint/default.nix b/nixpkgs/pkgs/applications/graphics/mtpaint/default.nix
new file mode 100644
index 000000000000..3565173285b4
--- /dev/null
+++ b/nixpkgs/pkgs/applications/graphics/mtpaint/default.nix
@@ -0,0 +1,43 @@
+{ lib, stdenv, fetchFromGitHub
+, pkg-config
+, freetype, giflib, gtk3, lcms2, libjpeg, libpng, libtiff, openjpeg, gifsicle
+}:
+
+stdenv.mkDerivation rec {
+  p_name  = "mtPaint";
+  ver_maj = "3.50";
+  ver_min = "01";
+  name = "${p_name}-${ver_maj}.${ver_min}";
+
+  src = fetchFromGitHub {
+    owner = "wjaguar";
+    repo = p_name;
+    rev = "a4675ff5cd9fcd57d291444cb9f332b48f11243f";
+    sha256 = "04wqxz8i655gz5rnz90cksy8v6m2jhcn1j8rzhqpp5xhawlmq24y";
+  };
+
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [
+    freetype giflib gtk3 lcms2 libjpeg libpng libtiff openjpeg gifsicle
+  ];
+
+  configureFlags = [ "gtk3" "intl" "man" ];
+
+  meta = {
+    description = "A simple GTK painting program";
+    longDescription = ''
+      mtPaint is a simple GTK painting program designed for
+      creating icons and pixel based artwork.  It can edit indexed palette
+      or 24 bit RGB images and offers basic painting and palette manipulation
+      tools. It also has several other more powerful features such as channels,
+      layers and animation.
+      Due to its simplicity and lack of dependencies it runs well on
+      GNU/Linux, Windows and older PC hardware.
+    '';
+    homepage = "http://mtpaint.sourceforge.net/";
+    license = lib.licenses.gpl3Plus;
+    platforms = lib.platforms.linux;
+    maintainers = [ lib.maintainers.vklquevs ];
+  };
+}
+