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