about summary refs log tree commit diff
path: root/pkgs/development/tools/selenium
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-03-30 14:51:30 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-03-30 14:51:30 +0000
commit93f9b0f45e54c0d951c2387a98996ddd8d7b5338 (patch)
treeb93d90871b4afa2860fa3b42a99625912d4c85cf /pkgs/development/tools/selenium
parentd9212aaaf871f14e9ca3539d9d4771c55ebadb0d (diff)
downloadnixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar.gz
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar.bz2
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar.lz
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar.xz
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.tar.zst
nixlib-93f9b0f45e54c0d951c2387a98996ddd8d7b5338.zip
updating selenium to SNAPSHOT version
to run firefox from selenium remote control you either have to use the
binary, write a binary wrapper or use latest version (which is what I've
done now)

svn path=/nixpkgs/trunk/; revision=14786
Diffstat (limited to 'pkgs/development/tools/selenium')
-rw-r--r--pkgs/development/tools/selenium/remote-control/default.nix31
1 files changed, 28 insertions, 3 deletions
diff --git a/pkgs/development/tools/selenium/remote-control/default.nix b/pkgs/development/tools/selenium/remote-control/default.nix
index e83ae3b6ed12..83d81133a28d 100644
--- a/pkgs/development/tools/selenium/remote-control/default.nix
+++ b/pkgs/development/tools/selenium/remote-control/default.nix
@@ -1,13 +1,18 @@
 args: with args;
-let version = "1.0-beta-2";
+# let version = "1.0-beta-2";
+let version = "1.0-SNAPSHOT-standalone";
 in stdenv.mkDerivation {
+    /*
+
+    Use this if there is another release..
+
     name = "selenium-remote-control-${version}-dist";
     src = fetchurl {
       url = "http://release.seleniumhq.org/selenium-remote-control/${version}/selenium-remote-control-${version}-dist.zip";
       sha256 = "0ciyfqvnv0117l2rhw9dclv85mcf3czpimvybj38v3syl7m7yk41";
     };
-    phases = "unpackPhase buildPhase";
     buildInputs = [unzip];
+    phases = "unpackPhase buildPhase";
     buildPhase = ''
       ensureDir $out/{bin,lib}
       mv * $out/lib
@@ -16,7 +21,27 @@ in stdenv.mkDerivation {
       #!/bin/sh
       exec ${jre}/bin/java -jar $out/lib/selenium-server-${version}/selenium-server.jar "\$@"
       EOF
-      echo chmod +x "$bin"
+      chmod +x "$bin" 
+    '';
+    */
+
+    # this snapshot version starts a firefox from a script file. It only issues a warning about it
+    # you still have to pass -DfirefoxDefaultPath=/home/marc/.nix-profile/bin/firefox or such..
+    name = "selenium-remote-control-${version}-dist";
+    # this dist file has been created using  mvn package  -Dmaven.test.skip=true based on svn rev 2639 
+    src = fetchurl {
+      url = "http://mawercer.de/~nix/selenium-server-1.0-SNAPSHOT-standalone.jar";
+      sha256 = "1g59g5y8lyjjj3fda30cm9gmjncdz70slrp03rqmnrkzp7z6khnc";
+    };
+    phases = "buildPhase";
+    buildPhase = ''
+      ensureDir $out/{bin,lib}
+      cp $src $out/lib/
+      bin="$out/bin/selenium-remote-control"
+      cat >> "$bin" << EOF
+      #!/bin/sh
+      exec ${jre}/bin/java -jar "$out/lib/$(basename $src)" "\$@"
+      EOF
       chmod +x "$bin" 
     '';
 }