Merge pull request #188797 from sikmir/wibo

wibo: 0.2.0 → 0.2.4

authored by Ryan Burns and committed by GitHub ef1cc4c4 d168bd64

+24 -3
+24 -3
pkgs/applications/emulators/wibo/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 + , fetchzip 5 + , srcOnly 4 6 , cmake 7 + , unzip 5 8 }: 6 9 7 10 stdenv.mkDerivation rec { 8 11 pname = "wibo"; 9 - version = "0.2.0"; 12 + version = "0.2.4"; 10 13 11 14 src = fetchFromGitHub { 12 15 owner = "decompals"; 13 - repo = "WiBo"; 16 + repo = "wibo"; 14 17 rev = version; 15 - sha256 = "sha256-zv+FiordPo7aho3RJqDEe/1sJtjVt6Vy665VeNul/Kw="; 18 + hash = "sha256-dpfKSiIWE9L5BLPH2t8RsUz7Ufkdo/5zn1dewaEgJl0="; 16 19 }; 17 20 18 21 nativeBuildInputs = [ 19 22 cmake 23 + unzip 20 24 ]; 25 + 26 + doCheck = false; 27 + # Test step from https://github.com/decompals/wibo/blob/main/.github/workflows/ci.yml 28 + checkPhase = let 29 + gc = srcOnly { 30 + name = "GC_WII_COMPILERS"; 31 + src = fetchzip { 32 + url = "https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip"; 33 + hash = "sha256-o+UrmIbCsa74LxtLofT0DKrTRgT0qDK5/V7GsG2Zprc="; 34 + stripRoot = false; 35 + }; 36 + meta.license = lib.licenses.unfree; 37 + }; 38 + in lib.optionalString doCheck '' 39 + MWCIncludes=. ./wibo ${gc}/GC/2.7/mwcceppc.exe -c ../test/test.c 40 + file test.o | grep "ELF 32-bit" 41 + ''; 21 42 22 43 meta = with lib; { 23 44 description = "Quick-and-dirty wrapper to run 32-bit windows EXEs on linux";