2008-01-30 17:20:48 +00:00
|
|
|
args: with args;
|
2009-03-30 15:51:30 +01:00
|
|
|
# let version = "1.0-beta-2";
|
|
|
|
let version = "1.0-SNAPSHOT-standalone";
|
2009-03-27 09:39:19 +00:00
|
|
|
in stdenv.mkDerivation {
|
2009-03-30 15:51:30 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
Use this if there is another release..
|
|
|
|
|
2009-03-27 09:39:19 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
buildInputs = [unzip];
|
2009-03-30 15:51:30 +01:00
|
|
|
phases = "unpackPhase buildPhase";
|
2009-03-27 09:39:19 +00:00
|
|
|
buildPhase = ''
|
|
|
|
ensureDir $out/{bin,lib}
|
|
|
|
mv * $out/lib
|
|
|
|
bin="$out/bin/selenium-remote-control"
|
|
|
|
cat >> "$bin" << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
exec ${jre}/bin/java -jar $out/lib/selenium-server-${version}/selenium-server.jar "\$@"
|
|
|
|
EOF
|
2009-03-30 15:51:30 +01:00
|
|
|
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";
|
2009-04-14 13:58:53 +01:00
|
|
|
# this dist file has been created using mvn package -Dmaven.test.skip=true based on svn rev 2450
|
2009-03-30 15:51:30 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mawercer.de/~nix/selenium-server-1.0-SNAPSHOT-standalone.jar";
|
2009-04-14 13:58:53 +01:00
|
|
|
sha256 = "1lqr72a3lmmww1psl19pzp91c9q1dm0314b7y7mz1gnfpwc49y38";
|
2009-03-30 15:51:30 +01:00
|
|
|
};
|
|
|
|
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
|
2009-03-27 09:39:19 +00:00
|
|
|
chmod +x "$bin"
|
|
|
|
'';
|
2007-12-03 14:33:54 +00:00
|
|
|
}
|