From df69473bd20e070e44f3c2de1d467af24d793669 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 5 Nov 2009 21:10:51 +0000 Subject: [PATCH] Add directvnc. Not sure whether it works - for me it hangs, but I have known Radeon issues, it seems svn path=/nixpkgs/trunk/; revision=18159 --- pkgs/os-specific/linux/directvnc/default.nix | 26 +++++++++++++++++++ .../linux/directvnc/src-for-default.nix | 9 +++++++ .../linux/directvnc/src-info-for-default.nix | 5 ++++ 3 files changed, 40 insertions(+) create mode 100644 pkgs/os-specific/linux/directvnc/default.nix create mode 100644 pkgs/os-specific/linux/directvnc/src-for-default.nix create mode 100644 pkgs/os-specific/linux/directvnc/src-info-for-default.nix diff --git a/pkgs/os-specific/linux/directvnc/default.nix b/pkgs/os-specific/linux/directvnc/default.nix new file mode 100644 index 000000000000..33ebd28d55ed --- /dev/null +++ b/pkgs/os-specific/linux/directvnc/default.nix @@ -0,0 +1,26 @@ +a : +let + s = import ./src-for-default.nix; + buildInputs = with a; [ + directfb zlib libjpeg pkgconfig xproto + ]; +in +rec { + src = a.fetchUrlFromSrcInfo s; + + inherit (s) name; + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "DirectFB VNC client"; + maintainers = [ + a.lib.maintainers.raskin + ]; + platforms = with a.lib.platforms; + linux; + }; +} diff --git a/pkgs/os-specific/linux/directvnc/src-for-default.nix b/pkgs/os-specific/linux/directvnc/src-for-default.nix new file mode 100644 index 000000000000..1141a1133f50 --- /dev/null +++ b/pkgs/os-specific/linux/directvnc/src-for-default.nix @@ -0,0 +1,9 @@ +rec { + version="0.7.5-test-051207"; + name="directvnc-0.7.5-test-051207"; + hash="1is9hca8an1b1n8436wkv7s08ml5lb95f7h9vznx9br597f106w9"; + url="http://directvnc-rev.googlecode.com/files/directvnc-${version}.tar.gz"; + advertisedUrl="http://directvnc-rev.googlecode.com/files/directvnc-0.7.5-test-051207.tar.gz"; + + +} diff --git a/pkgs/os-specific/linux/directvnc/src-info-for-default.nix b/pkgs/os-specific/linux/directvnc/src-info-for-default.nix new file mode 100644 index 000000000000..5c3ac7171add --- /dev/null +++ b/pkgs/os-specific/linux/directvnc/src-info-for-default.nix @@ -0,0 +1,5 @@ +{ + downloadPage = "http://code.google.com/p/directvnc-rev/downloads/list"; + baseName = "directvnc"; + versionExtractorSedScript = ''s/[^0-9]*-([0-9].*[0-9])[.].*/\1/''; +}