From 8c82537f9a2424c0ae511c876bde2c131f93f796 Mon Sep 17 00:00:00 2001
From: Alexander Tsamutali <astsmtl@yandex.ru>
Date: Sun, 21 Feb 2010 11:36:49 +0000
Subject: [PATCH] applications/misc/sakura: New nixpkg.

svn path=/nixpkgs/trunk/; revision=20152
---
 pkgs/applications/misc/sakura/default.nix | 30 +++++++++++++++++++++++
 pkgs/top-level/all-packages.nix           |  7 ++++++
 2 files changed, 37 insertions(+)
 create mode 100644 pkgs/applications/misc/sakura/default.nix

diff --git a/pkgs/applications/misc/sakura/default.nix b/pkgs/applications/misc/sakura/default.nix
new file mode 100644
index 000000000000..3f1737f55577
--- /dev/null
+++ b/pkgs/applications/misc/sakura/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, cmake, pkgconfig, gtk, vte, pixman, gettext }:
+stdenv.mkDerivation rec {
+  name = "sakura-2.3.6";
+  src = fetchurl {
+    url = "http://www.pleyades.net/david/projects/sakura/${name}.tar.bz2";
+    sha256 = "0g6v1filixy4zcz1fabjz0zpdicgzxkc8rh06jxfch5pk9dq4x5j";
+  };
+  # FIXME
+  patchPhase = ''
+    sed -i "s:INSTALL (FILES sakura.1:#INSTALL (FILES sakura.1:" CMakeLists.txt
+  '';
+  buildInputs = [ cmake pkgconfig gtk vte pixman gettext ];
+  meta = {
+    homepage = "http://www.pleyades.net/david/sakura.php";
+    description = "A terminal emulator based on GTK and VTE";
+    longDescription = ''
+      sakura is a terminal emulator based on GTK and VTE. It's a terminal
+      emulator with few dependencies, so you don't need a full GNOME desktop
+      installed to have a decent terminal emulator. Current terminal emulators
+      based on VTE are gnome-terminal, XFCE Terminal, TermIt and a small
+      sample program included in the vte sources. The differences between
+      sakura and the last one are that it uses a notebook to provide several
+      terminals in one window and adds a contextual menu with some basic
+      options. No more no less.
+    '';
+    license = "GPLv2";
+    maintainers = with stdenv.lib.maintainers; [ astsmtl ];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index dee9c2610eda..4890fd698846 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7907,6 +7907,13 @@ let
     perlSupport = false;
   };
 
+  sakura = import ../applications/misc/sakura {
+    inherit stdenv fetchurl cmake pkgconfig gettext;
+    inherit (gtkLibs) gtk;
+    inherit (gnome) vte;
+    inherit (xlibs) pixman;
+  };
+
   sbagen = import ../applications/misc/sbagen {
     inherit fetchurl stdenv;
   };