about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Burns <52847440+r-burns@users.noreply.github.com>2022-09-01 08:50:18 +0100
committerGitHub <noreply@github.com>2022-09-01 08:50:18 +0100
commitef1cc4c4f5c9be6254bb0eed65a0439995e4d99b (patch)
treefcaa900299317d08e1d4cc8cf3d741405aaa1225
parentd168bd6447a13e24f36b03071d5207458c066224 (diff)
parent84a4b6598a0e8ca7cadcf427ed5df972a57c159d (diff)
downloadnixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar.gz
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar.bz2
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar.lz
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar.xz
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.tar.zst
nixlib-ef1cc4c4f5c9be6254bb0eed65a0439995e4d99b.zip
Merge pull request #188797 from sikmir/wibo
wibo: 0.2.0 → 0.2.4
-rw-r--r--pkgs/applications/emulators/wibo/default.nix27
1 files changed, 24 insertions, 3 deletions
diff --git a/pkgs/applications/emulators/wibo/default.nix b/pkgs/applications/emulators/wibo/default.nix
index 7a0d4e5f096d..69137cb8f030 100644
--- a/pkgs/applications/emulators/wibo/default.nix
+++ b/pkgs/applications/emulators/wibo/default.nix
@@ -1,24 +1,45 @@
 { lib
 , stdenv
 , fetchFromGitHub
+, fetchzip
+, srcOnly
 , cmake
+, unzip
 }:
 
 stdenv.mkDerivation rec {
   pname = "wibo";
-  version = "0.2.0";
+  version = "0.2.4";
 
   src = fetchFromGitHub {
     owner = "decompals";
-    repo = "WiBo";
+    repo = "wibo";
     rev = version;
-    sha256 = "sha256-zv+FiordPo7aho3RJqDEe/1sJtjVt6Vy665VeNul/Kw=";
+    hash = "sha256-dpfKSiIWE9L5BLPH2t8RsUz7Ufkdo/5zn1dewaEgJl0=";
   };
 
   nativeBuildInputs = [
     cmake
+    unzip
   ];
 
+  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"
+  '';
+
   meta = with lib; {
     description = "Quick-and-dirty wrapper to run 32-bit windows EXEs on linux";
     longDescription = ''