summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2007-11-11 08:16:23 +0000
committerMarc Weber <marco-oweber@gmx.de>2007-11-11 08:16:23 +0000
commit7a9d92486f846f222ed04622f4d1424b237710eb (patch)
tree4caa12e879adf8a074f703478e6841a866a80779 /pkgs
parent61f4326752b238072fecfac164f7b9b1028f651d (diff)
downloadnixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar.gz
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar.bz2
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar.lz
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar.xz
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.tar.zst
nixpkgs-7a9d92486f846f222ed04622f4d1424b237710eb.zip
Synergy added and fetchcvs modified (see mailinglist post)
svn path=/nixpkgs/trunk/; revision=9624
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/synergy/default.nix19
-rw-r--r--pkgs/build-support/fetchcvs/builder.sh28
-rw-r--r--pkgs/build-support/fetchcvs/default.nix15
-rw-r--r--pkgs/top-level/all-packages.nix6
4 files changed, 41 insertions, 27 deletions
diff --git a/pkgs/applications/misc/synergy/default.nix b/pkgs/applications/misc/synergy/default.nix
new file mode 100644
index 00000000000..b2b7af6f014
--- /dev/null
+++ b/pkgs/applications/misc/synergy/default.nix
@@ -0,0 +1,19 @@
+args:
+args.stdenv.mkDerivation {
+  name = "synergy-cvs";
+
+  src = args.fetchcvs {
+    url = ":pserver:anonymous@synergy2.cvs.sourceforge.net:/cvsroot/synergy2";
+    module = "synergy";
+    tag = "-DNOW";
+    sha256 = "ef8e2ebfda6e43240051a7af9417092b2af50ece8b5c6c3fbd908ba91c4fe068";
+  };
+
+  buildInputs =(with args; [x11 xextproto libXtst inputproto]);
+
+  meta= { 
+      description = "share mouse keyboard and clipboard between computers";
+      homepage = http://synergy2;
+      license = "GPL";
+  };
+}
diff --git a/pkgs/build-support/fetchcvs/builder.sh b/pkgs/build-support/fetchcvs/builder.sh
index 55a87c1660a..16aad96116d 100644
--- a/pkgs/build-support/fetchcvs/builder.sh
+++ b/pkgs/build-support/fetchcvs/builder.sh
@@ -1,24 +1,16 @@
 source $stdenv/setup
 
-header "exporting $url $module into $out"
-
-prefetch=$(dirname $out)/cvs-checkout-tmp-$outputHash
-echo $prefetch
-if test -e "$prefetch"; then
-    mv $prefetch $out
-else
-    if test -z "$tag"; then
-      rtag="-DNOW"
-    else
-      rtag="-r $tag"
-    fi
-    cvs -f -d $url export $rtag -d $out $module
+if test -z "$tag"; then
+  tag="-DNOW"
 fi
+# creating the export drictory and checking out there only to be able to
+# move the content without the root directory into $out ...
+# cvs -f -d "$url" export $tag -d "$out" "$module"
+# should work (but didn't - got no response on #cvs)
+# See als man Page for those options
 
-actual=$(nix-hash $out)
-if test "$actual" != "$outputHash"; then
-    echo "hash is $actual, expected $outputHash" >&2
-    exit 1
-fi
+ensureDir $out export
+cd export; cvs -f -d "$url" export $tag "$module"
+mv */* $out
 
 stopNest
diff --git a/pkgs/build-support/fetchcvs/default.nix b/pkgs/build-support/fetchcvs/default.nix
index a97e9d927ef..6cd31ddaade 100644
--- a/pkgs/build-support/fetchcvs/default.nix
+++ b/pkgs/build-support/fetchcvs/default.nix
@@ -1,16 +1,13 @@
-{stdenv, cvs, nix}: {url, module, tag, md5}:
+# example tags:
+# "-DNOW" (get current version)
+# "-D2007-20-10" (get the last version before given date)
+# "-r <tagname>" (get version by tag name)
+{stdenv, cvs, nix}: {url, module, tag, sha256}:
 
 stdenv.mkDerivation {
   name = "cvs-export";
   builder = ./builder.sh;
   buildInputs = [cvs nix];
 
-  # Nix <= 0.7 compatibility.
-  id = md5;
-
-  outputHashAlgo = "md5";
-  outputHashMode = "recursive";
-  outputHash = md5;
-  
-  inherit url module tag;
+  inherit url module tag sha256;
 }
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6e22e0b443d..8d473c40f25 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4048,6 +4048,12 @@ rec {
     gpgSupport = true;
   };
 
+  # linux only by now 
+  synergy = import ../applications/misc/synergy {
+    inherit fetchcvs stdenv x11;
+    inherit (xlibs) xextproto libXtst inputproto;
+  };
+
   thunderbird = thunderbird2;
 
   thunderbird1 = import ../applications/networking/mailreaders/thunderbird-1.x {