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/''; +}