Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ buildpi/
.idea/
android/local.properties
android/app/src/main/assets

result
74 changes: 74 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, networkmanager
, libnl
, openssl
, git
, SDL2
, SDL2_ttf
, SDL2_image
, libwebp
, libtiff
, ffmpeg
, polkit
, libxml2
, xorg
, libGL
, libdrm
}:
let
hostap = fetchFromGitHub {
owner = "rolandoislas";
repo = "drc-hostap";
rev = "418e5e206786de2482864a0ec3a59742a33b6623";
hash = "sha256-kAv/PetD6Ia5NzmYMWWyWQll1P+N2bL/zaV9ATiGVV0=";
leaveDotGit = true;
};
in
stdenv.mkDerivation {
pname = "vanilla-wiiu";
version = "continuous";

src = ./.;

nativeBuildInputs = [
cmake
pkg-config
git
];
buildInputs = [
networkmanager
libnl
openssl
SDL2
SDL2_ttf
SDL2_image
libwebp
libtiff
ffmpeg
polkit
libxml2
xorg.libX11
libGL
libdrm
];

postPatch = ''
substituteInPlace cmake/FindLibNL.cmake \
--replace-fail /usr/include/libnl3 ${lib.getDev libnl}/include/libnl3
substituteInPlace pipe/linux/CMakeLists.txt \
--replace-fail "https://github.com/rolandoislas/drc-hostap.git" "${hostap}" \
--replace-fail "--branch master" "--branch fetchgit"
'';

meta = {
description = "A software clone of the Wii U gamepad for Linux";
homepage = "https://github.com/vanilla-wiiu/vanilla";
license = lib.licenses.gpl2;
mainProgram = "vanilla";
platforms = lib.platforms.linux;
};
}
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
description = "A software clone of the Wii U gamepad for Linux";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
outputs = { self, nixpkgs }: {
packages = nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: {
default = (import nixpkgs { inherit system; }).callPackage ./default.nix { };
});
};
}
6 changes: 3 additions & 3 deletions gui/ui/ui_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#include <SDL2/SDL.h>
#include <SDL2/SDL_hints.h>
#include <SDL2/SDL_syswm.h>
#include <SDL_image.h>
#include <SDL_power.h>
#include <SDL_ttf.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_power.h>
#include <SDL2/SDL_ttf.h>
#include <pthread.h>
#include <vanilla.h>
#include <libavutil/hwcontext.h>
Expand Down