mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 02:53:55 +00:00
3b6bc4b69c
these are the easily identifiable cases and will not be comprehensive
31 lines
775 B
Nix
31 lines
775 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"
|
|
setSourceRoot = "sourceRoot=`pwd`";
|
|
|
|
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;
|
|
};
|
|
}
|