2011-07-24 21:26:28 +01:00
|
|
|
{ stdenv, fetchurl, java }:
|
2011-07-21 18:01:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jbidwatcher";
|
2012-10-26 09:35:07 +01:00
|
|
|
version = "2.5.2";
|
2011-07-21 18:01:31 +01:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.jbidwatcher.com/download/JBidwatcher-${version}.jar";
|
2012-10-26 09:35:07 +01:00
|
|
|
sha256 = "07w75ryn8inm5i1829gabr8lifbycz40ynzsyaw22yzqk5if1n9l";
|
2011-07-21 18:01:31 +01:00
|
|
|
};
|
|
|
|
|
2011-07-24 21:26:28 +01:00
|
|
|
buildInputs = [ java ];
|
2011-07-21 18:01:31 +01:00
|
|
|
|
|
|
|
jarfile = "$out/share/java/${pname}/JBidwatcher.jar";
|
|
|
|
|
2016-05-04 11:37:40 +01:00
|
|
|
unpackPhase = "true";
|
2011-07-21 18:01:31 +01:00
|
|
|
|
2016-05-04 11:08:35 +01:00
|
|
|
dontBuild = true;
|
2011-07-21 18:01:31 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2011-07-21 18:01:31 +01:00
|
|
|
echo > "$out/bin/${pname}" "#!/bin/sh"
|
2011-07-24 21:26:28 +01:00
|
|
|
echo >>"$out/bin/${pname}" "${java}/bin/java -Xmx512m -jar ${jarfile}"
|
2011-07-21 18:01:31 +01:00
|
|
|
chmod +x "$out/bin/${pname}"
|
|
|
|
install -D -m644 ${src} ${jarfile}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.jbidwatcher.com/";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Monitor and snipe Ebay auctions";
|
2011-07-21 18:01:31 +01:00
|
|
|
license = "LGPL";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
A Java-based application allowing you to monitor auctions you're
|
|
|
|
not part of, submit bids, snipe (bid at the last moment), and
|
|
|
|
otherwise track your auction-site experience. It includes
|
|
|
|
adult-auction management, MANY currencies (pound, dollar (US,
|
|
|
|
Canada, Australian, and New Taiwanese) and euro, presently),
|
|
|
|
drag-and-drop of auction URLs, an original, unique and powerful
|
|
|
|
'multisniping' feature, a relatively nice UI, and is known to work
|
|
|
|
cleanly under Linux, Windows, Solaris, and MacOSX from the same
|
|
|
|
binary.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|