about summary refs log tree commit diff
path: root/pkgs/tools/X11/xpra/libfakeXinerama.nix
diff options
context:
space:
mode:
authorThomas Strobel <ts468@cam.ac.uk>2015-02-25 00:34:58 +0100
committerThomas Strobel <ts468@cam.ac.uk>2015-02-25 01:09:39 +0100
commitc6ef0727c3aa377e4ad5f041c105a4795bb94cc9 (patch)
treee2428f717ac90142a547889f1c07b0c7c650b4de /pkgs/tools/X11/xpra/libfakeXinerama.nix
parent7cc7e9b64a3b4e23fd8d23e84d87cdb787155de7 (diff)
Fix/update Xpra
Diffstat (limited to 'pkgs/tools/X11/xpra/libfakeXinerama.nix')
-rw-r--r--pkgs/tools/X11/xpra/libfakeXinerama.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xpra/libfakeXinerama.nix b/pkgs/tools/X11/xpra/libfakeXinerama.nix
new file mode 100644
index 0000000000000..4ca509f8b9367
--- /dev/null
+++ b/pkgs/tools/X11/xpra/libfakeXinerama.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl, libX11, libXinerama }:
+
+stdenv.mkDerivation  rec {
+  name = "libfakeXinerama-${version}";
+  version = "0.1.0";
+
+  src = fetchurl {
+    url = "https://www.xpra.org/src/${name}.tar.bz2";
+    sha256 = "0gxb8jska2anbb3c1m8asbglgnwylgdr44x9lr8yh91hjxsqadkx";
+  };
+
+  buildInputs = [ libX11 libXinerama ];
+
+  phases = [ "unpackPhase" "buildPhase" "installPhase" ];
+
+  buildPhase = ''
+    gcc -O2 -Wall fakeXinerama.c -fPIC -o libfakeXinerama.so.1.0 -shared
+  '';
+
+  installPhase = ''
+    mkdir -p $out/lib
+    cp libfakeXinerama.so.1.0 $out/lib
+    ln -s libXinerama.so.1.0 $out/lib/libXinerama.so.1
+    ln -s libXinerama.so.1 $out/lib/libXinerama.so
+  '';
+
+  meta = {
+    homepage = http://xpra.org/;
+    description = "fakeXinerama for Xpra";
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = with stdenv.lib.maintainers; [ tstrobel ];
+  };
+}