about summary refs log tree commit diff
path: root/pkgs/tools/admin/gtk-vnc
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2011-01-13 22:21:09 +0000
committerMichael Raskin <7c6f434c@mail.ru>2011-01-13 22:21:09 +0000
commit259e59148e6db7136e33d92b60611cd1f870deb5 (patch)
tree62d240fdfafb247e6ed14d4f6f7fe829721d6bd8 /pkgs/tools/admin/gtk-vnc
parent18d0193c18851481733a1e82e749edaaecec9027 (diff)
downloadnixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar.gz
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar.bz2
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar.lz
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar.xz
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.tar.zst
nixlib-259e59148e6db7136e33d92b60611cd1f870deb5.zip
Adding GTK-VNC
svn path=/nixpkgs/trunk/; revision=25547
Diffstat (limited to 'pkgs/tools/admin/gtk-vnc')
-rw-r--r--pkgs/tools/admin/gtk-vnc/default.nix62
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/tools/admin/gtk-vnc/default.nix b/pkgs/tools/admin/gtk-vnc/default.nix
new file mode 100644
index 000000000000..3b535dabbae1
--- /dev/null
+++ b/pkgs/tools/admin/gtk-vnc/default.nix
@@ -0,0 +1,62 @@
+x@{builderDefsPackage
+  , python, gtk, pygtk, gnutls, cairo, libtool, glib, pkgconfig, libtasn1
+  , libffi, cyrus_sasl, intltool, perl, perlPackages, firefox36Pkgs
+  , kbproto, libX11, libXext, xextproto, pygobject
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    ["perlPackages" "firefox36Pkgs" "gtkLibs"];
+
+  buildInputs = (map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames)))
+    ++ [perlPackages.TextCSV firefox36Pkgs.xulrunner ];
+  sourceInfo = rec {
+    baseName="gtk-vnc";
+    majorVersion="0.4";
+    minorVersion="2";
+    version="${majorVersion}.${minorVersion}";
+    name="${baseName}-${version}";
+    url="mirror://gnome/sources/${baseName}/${majorVersion}/${name}.tar.gz";
+    hash="1fkhzwpw50rnwp51lsbny16p2ckzx5rkcaiaqvkd90vwnm2cccls";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  configureFlags = [
+    "--with-python"
+    "--with-examples"
+  ];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["fixMakefiles" "doConfigure" "doMakeInstall"];
+
+  fixMakefiles = a.fullDepEntry ''
+    find . -name 'Makefile*' -exec sed -i '{}' -e 's@=codegendir pygtk-2.0@=codegendir pygobject-2.0@' ';'
+  '' ["minInit" "doUnpack"];
+      
+  meta = {
+    description = "A GTK VNC widget";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.licenses.lgpl21;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://ftp.gnome.org/pub/GNOME/sources/gtk-vnc";
+    };
+  };
+}) x
+