From d554a0aba79dd3123832e6d2c1e1110978c5b91e Mon Sep 17 00:00:00 2001 From: MetaDark Date: Sat, 25 Jul 2020 15:44:14 -0400 Subject: [PATCH] linuxPackages.xpadneo: 0.8.1 -> 0.8.2 Also fixes kernel module version: @DO_NOT_CHANGE@ -> 0.8.2 --- pkgs/os-specific/linux/xpadneo/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/xpadneo/default.nix b/pkgs/os-specific/linux/xpadneo/default.nix index 9845e1e5ebdf..7a1c2d1cec96 100644 --- a/pkgs/os-specific/linux/xpadneo/default.nix +++ b/pkgs/os-specific/linux/xpadneo/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { pname = "xpadneo"; - version = "0.8.1"; + version = "0.8.2"; src = fetchFromGitHub { owner = "atar-axis"; @@ -15,6 +15,12 @@ stdenv.mkDerivation rec { export sourceRoot=$(pwd)/source/hid-xpadneo/src ''; + postPatch = '' + # Set kernel module version + substituteInPlace hid-xpadneo.c \ + --subst-var-by DO_NOT_CHANGE ${version} + ''; + nativeBuildInputs = kernel.moduleBuildDependencies; buildInputs = [ bluez ];