Merge pull request #146252 from Stunkymonkey/mockobjects-builder

This commit is contained in:
Sandro 2021-11-17 13:10:26 +01:00 committed by GitHub
commit 9bb171cfc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +0,0 @@
set -e
source $stdenv/setup
tar xvf $src
mkdir -p $out
mv * $out

View File

@ -2,13 +2,24 @@
stdenv.mkDerivation {
name = "mockobjects-0.09";
builder = ./builder.sh;
src = fetchurl {
url = "mirror://sourceforge/mockobjects/mockobjects-bin-0.09.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";
platforms = platforms.unix;