2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-09-09 14:08:57 +00:00
|
|
|
, fetchzip
|
|
|
|
, srcOnly
|
2022-07-18 16:21:45 +00:00
|
|
|
, cmake
|
2022-09-09 14:08:57 +00:00
|
|
|
, unzip
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wibo";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.2.4";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "decompals";
|
2022-09-09 14:08:57 +00:00
|
|
|
repo = "wibo";
|
2022-07-18 16:21:45 +00:00
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-dpfKSiIWE9L5BLPH2t8RsUz7Ufkdo/5zn1dewaEgJl0=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2022-09-09 14:08:57 +00:00
|
|
|
unzip
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = false;
|
|
|
|
# Test step from https://github.com/decompals/wibo/blob/main/.github/workflows/ci.yml
|
|
|
|
checkPhase = let
|
|
|
|
gc = srcOnly {
|
|
|
|
name = "GC_WII_COMPILERS";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip";
|
|
|
|
hash = "sha256-o+UrmIbCsa74LxtLofT0DKrTRgT0qDK5/V7GsG2Zprc=";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
meta.license = lib.licenses.unfree;
|
|
|
|
};
|
|
|
|
in lib.optionalString doCheck ''
|
|
|
|
MWCIncludes=. ./wibo ${gc}/GC/2.7/mwcceppc.exe -c ../test/test.c
|
|
|
|
file test.o | grep "ELF 32-bit"
|
|
|
|
'';
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Quick-and-dirty wrapper to run 32-bit windows EXEs on linux";
|
|
|
|
longDescription = ''
|
|
|
|
A minimal, low-fuss wrapper that can run really simple command-line
|
|
|
|
32-bit Windows binaries on Linux - with less faff and less dependencies
|
|
|
|
than WINE.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/decompals/WiBo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ r-burns ];
|
|
|
|
platforms = [ "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|