nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 callPackage,
4 fetchzip,
5 stdenv,
6 zlib,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "fastjar";
11 version = "0.98";
12
13 src = fetchzip {
14 pname = "fastjar-source";
15 inherit (finalAttrs) version;
16 url = "mirror://savannah/fastjar/fastjar-${finalAttrs.version}.tar.gz";
17 hash = "sha256-8VyKNQaPLrXAy/UEm2QkBx56SSSoLdU/7w4IwrxbsQc=";
18 };
19
20 outputs = [
21 "out"
22 "info"
23 "man"
24 ];
25
26 buildInputs = [ zlib ];
27
28 strictDeps = true;
29
30 doCheck = true;
31
32 passthru = {
33 tests = lib.packagesFromDirectoryRecursive {
34 inherit callPackage;
35 directory = ./tests;
36 };
37 };
38
39 meta = {
40 homepage = "https://savannah.nongnu.org/projects/fastjar/";
41 description = "Fast Java archiver written in C";
42 longDescription = ''
43 FastJar is an attempt at creating a feature-for-feature copy of Sun's
44 JDK's 'jar' command. Sun's jar (or Blackdown's for that matter) is
45 written entirely in Java which makes it dog slow. Since FastJar is
46 written in C, it can create the same .jar file as Sun's tool in a fraction
47 of the time.
48 '';
49 license = lib.licenses.gpl2Plus;
50 mainProgram = "fastjar";
51 maintainers = [ ];
52 platforms = lib.platforms.all;
53 };
54})