depot/third_party/nixpkgs/pkgs/development/libraries/java/mockobjects/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

30 lines
757 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "mockobjects";
version = "0.09";
src = fetchurl {
url = "mirror://sourceforge/mockobjects/mockobjects-bin-${version}.tar";
sha256 = "18rnyqfcyh0s3dwkkaszdd50ssyjx5fa1y3ii309ldqg693lfgnz";
};
# Work around the "unpacker appears to have produced no directories"
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/share/java
cp mockobjects-*.jar $out/share/java
runHook postInstall
'';
meta = with lib; {
description = "Generic unit testing framework and methodology for testing any kind of code";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
platforms = platforms.unix;
license = licenses.asl20;
};
}