mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Synergy added and fetchcvs modified (see mailinglist post)
svn path=/nixpkgs/trunk/; revision=9624
This commit is contained in:
parent
61f4326752
commit
7a9d92486f
19
pkgs/applications/misc/synergy/default.nix
Normal file
19
pkgs/applications/misc/synergy/default.nix
Normal file
@ -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";
|
||||||
|
};
|
||||||
|
}
|
@ -1,24 +1,16 @@
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
header "exporting $url $module into $out"
|
if test -z "$tag"; then
|
||||||
|
tag="-DNOW"
|
||||||
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
|
|
||||||
fi
|
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)
|
ensureDir $out export
|
||||||
if test "$actual" != "$outputHash"; then
|
cd export; cvs -f -d "$url" export $tag "$module"
|
||||||
echo "hash is $actual, expected $outputHash" >&2
|
mv */* $out
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
stopNest
|
stopNest
|
||||||
|
@ -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 {
|
stdenv.mkDerivation {
|
||||||
name = "cvs-export";
|
name = "cvs-export";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
buildInputs = [cvs nix];
|
buildInputs = [cvs nix];
|
||||||
|
|
||||||
# Nix <= 0.7 compatibility.
|
inherit url module tag sha256;
|
||||||
id = md5;
|
|
||||||
|
|
||||||
outputHashAlgo = "md5";
|
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = md5;
|
|
||||||
|
|
||||||
inherit url module tag;
|
|
||||||
}
|
}
|
||||||
|
@ -4048,6 +4048,12 @@ rec {
|
|||||||
gpgSupport = true;
|
gpgSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# linux only by now
|
||||||
|
synergy = import ../applications/misc/synergy {
|
||||||
|
inherit fetchcvs stdenv x11;
|
||||||
|
inherit (xlibs) xextproto libXtst inputproto;
|
||||||
|
};
|
||||||
|
|
||||||
thunderbird = thunderbird2;
|
thunderbird = thunderbird2;
|
||||||
|
|
||||||
thunderbird1 = import ../applications/networking/mailreaders/thunderbird-1.x {
|
thunderbird1 = import ../applications/networking/mailreaders/thunderbird-1.x {
|
||||||
|
Loading…
Reference in New Issue
Block a user