1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "mockobjects";
5 version = "0.09";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/mockobjects/mockobjects-bin-${version}.tar";
9 sha256 = "18rnyqfcyh0s3dwkkaszdd50ssyjx5fa1y3ii309ldqg693lfgnz";
10 };
11
12 # Work around the "unpacker appears to have produced no directories"
13 sourceRoot = ".";
14
15 installPhase = ''
16 runHook preInstall
17
18 mkdir -p $out/share/java
19 cp mockobjects-*.jar $out/share/java
20
21 runHook postInstall
22 '';
23
24 meta = with lib; {
25 description = "Generic unit testing framework and methodology for testing any kind of code";
26 sourceProvenance = with sourceTypes; [ binaryBytecode ];
27 platforms = platforms.unix;
28 license = licenses.asl20;
29 };
30}