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 { lib 2 , stdenv 3 , fetchFromGitHub 4 , cmake 5 }: 6 7 stdenv.mkDerivation rec { 8 pname = "wibo"; 9 - version = "0.2.0"; 10 11 src = fetchFromGitHub { 12 owner = "decompals"; 13 - repo = "WiBo"; 14 rev = version; 15 - sha256 = "sha256-zv+FiordPo7aho3RJqDEe/1sJtjVt6Vy665VeNul/Kw="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 ]; 21 22 meta = with lib; { 23 description = "Quick-and-dirty wrapper to run 32-bit windows EXEs on linux";
··· 1 { lib 2 , stdenv 3 , fetchFromGitHub 4 + , fetchzip 5 + , srcOnly 6 , cmake 7 + , unzip 8 }: 9 10 stdenv.mkDerivation rec { 11 pname = "wibo"; 12 + version = "0.2.4"; 13 14 src = fetchFromGitHub { 15 owner = "decompals"; 16 + repo = "wibo"; 17 rev = version; 18 + hash = "sha256-dpfKSiIWE9L5BLPH2t8RsUz7Ufkdo/5zn1dewaEgJl0="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 + unzip 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 + ''; 42 43 meta = with lib; { 44 description = "Quick-and-dirty wrapper to run 32-bit windows EXEs on linux";