wii-u-gc-adapter: init
This commit is contained in:
31
pkgs/wii-u-gc-adapter/default.nix
Normal file
31
pkgs/wii-u-gc-adapter/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv, pkg-config, udev, libusb1, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "wii-u-gc-adapter";
|
||||
version = "fa098ef";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ToadKing";
|
||||
repo = "wii-u-gc-adapter";
|
||||
rev = "fa098efa7f6b34f8cd82e2c249c81c629901976c";
|
||||
hash = "sha256-wm0vDU7QckFvpgI50PG4/elgPEkfr8xTmroz8kE6QMo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
udev
|
||||
libusb1
|
||||
];
|
||||
|
||||
patches = [
|
||||
./remove-Wformat.patch
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv wii-u-gc-adapter $out/bin
|
||||
'';
|
||||
}
|
||||
10
pkgs/wii-u-gc-adapter/remove-Wformat.patch
Normal file
10
pkgs/wii-u-gc-adapter/remove-Wformat.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index a00f13a..f13d0c2 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,4 +1,4 @@
|
||||
-CFLAGS += -Wall -Wextra -pedantic -Wno-format -std=c99 $(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --cflags udev)
|
||||
+CFLAGS += -Wall -Wextra -Wformat -std=c99 $(shell pkg-config --cflags libusb-1.0) $(shell pkg-config --cflags udev)
|
||||
LDFLAGS += -lpthread -ludev $(shell pkg-config --libs libusb-1.0) $(shell pkg-config --libs udev)
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
Reference in New Issue
Block a user