summary refs log tree commit diff
path: root/pkgs/applications/misc/jbidwatcher/default.nix
blob: 9b74b0c93a97523129277ed094f3aabba839d0cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ stdenv, fetchurl, java }:

stdenv.mkDerivation rec {
  pname = "jbidwatcher";
  version = "2.5.2";

  name = "${pname}-${version}";

  src = fetchurl {
    url = "http://www.jbidwatcher.com/download/JBidwatcher-${version}.jar";
    sha256 = "07w75ryn8inm5i1829gabr8lifbycz40ynzsyaw22yzqk5if1n9l";
  };

  buildInputs = [ java ];

  jarfile = "$out/share/java/${pname}/JBidwatcher.jar";

  unpackPhase = "true";

  buildPhase = "true";

  installPhase = ''
    mkdir -p "$out/bin"
    echo > "$out/bin/${pname}" "#!/bin/sh"
    echo >>"$out/bin/${pname}" "${java}/bin/java -Xmx512m -jar ${jarfile}"
    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 ];
  };
}