2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, java, runtimeShell }:
|
2011-07-21 17:01:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jbidwatcher";
|
2017-07-30 19:20:11 +00:00
|
|
|
version = "2.5.6";
|
2011-07-21 17:01:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.jbidwatcher.com/download/JBidwatcher-${version}.jar";
|
2017-07-30 19:20:11 +00:00
|
|
|
sha256 = "1cw59wh72w1zzibs8x64dma3jc4hry64wjksqs52nc3vpnf0fzfr";
|
2011-07-21 17:01:31 +00:00
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
|
2019-06-19 15:45:34 +00:00
|
|
|
dontUnpack = true;
|
2011-07-21 17:01:31 +00:00
|
|
|
|
2016-05-04 10:08:35 +00:00
|
|
|
dontBuild = true;
|
2011-07-21 17:01:31 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2019-02-26 11:45:54 +00:00
|
|
|
echo > "$out/bin/${pname}" "#!${runtimeShell}"
|
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 = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.jbidwatcher.com/";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Monitor and snipe Ebay auctions";
|
2011-07-21 17:01:31 +00: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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
2011-07-21 17:01:31 +00:00
|
|
|
};
|
|
|
|
}
|