2011-07-24 20:26:28 +00:00
|
|
|
{ stdenv, fetchurl, java }:
|
2011-07-21 17:01:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jbidwatcher";
|
|
|
|
version = "2.1.5";
|
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.jbidwatcher.com/download/JBidwatcher-${version}.jar";
|
|
|
|
sha256 = "0nrs9ly56cqn33dm1sjm53pzj1cf7jncwn4c8v0xyva4jqyz2y5p";
|
|
|
|
};
|
|
|
|
|
2011-07-24 20:26:28 +00:00
|
|
|
buildInputs = [ java ];
|
2011-07-21 17:01:31 +00:00
|
|
|
|
|
|
|
jarfile = "$out/share/java/${pname}/JBidwatcher.jar";
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2011-07-21 17:01:31 +00:00
|
|
|
echo > "$out/bin/${pname}" "#!/bin/sh"
|
2011-07-24 20:26:28 +00:00
|
|
|
echo >>"$out/bin/${pname}" "${java}/bin/java -Xmx512m -jar ${jarfile}"
|
2011-07-21 17:01:31 +00:00
|
|
|
chmod +x "$out/bin/${pname}"
|
|
|
|
install -D -m644 ${src} ${jarfile}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.jbidwatcher.com/";
|
|
|
|
description = "monitor and snipe Ebay auctions";
|
|
|
|
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;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
|
|
|
}
|