summary refs log tree commit diff
path: root/pkgs/development/tools/java/fastjar/default.nix
blob: 52211e302dd94b70f1f2ae81f93318c6c9c1a260 (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
{ fetchurl, lib, stdenv, zlib }:

let version = "0.98"; in
  stdenv.mkDerivation {
    pname = "fastjar";
    inherit version;

    src = fetchurl {
      url = "https://download.savannah.gnu.org/releases/fastjar/fastjar-${version}.tar.gz";
      sha256 = "0iginbz2m15hcsa3x4y7v3mhk54gr1r7m3ghx0pg4n46vv2snmpi";
    };

    buildInputs = [ zlib ];

    doCheck = true;

    meta = {
      description = "Fast Java archiver written in C";

      longDescription = ''
        Fastjar is a version of Sun's `jar' utility, written entirely in C, and
        therefore quite a bit faster.  Fastjar can be up to 100x faster than
        the stock `jar' program running without a JIT.
      '';

      homepage = "https://savannah.nongnu.org/projects/fastjar/";

      license = lib.licenses.gpl2Plus;
      platforms = lib.platforms.linux;
      maintainers = [ ];
    };
  }