From 692482d18823b9ba2b9f264500ab94747c07c5ed Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 17 Nov 2020 20:27:06 -0500 Subject: [PATCH 1/2] linuxPackages.xpadneo: 0.8.4 -> 0.9 --- pkgs/os-specific/linux/xpadneo/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/xpadneo/default.nix b/pkgs/os-specific/linux/xpadneo/default.nix index e0e2bcc21d9b..f921a7647a8a 100644 --- a/pkgs/os-specific/linux/xpadneo/default.nix +++ b/pkgs/os-specific/linux/xpadneo/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "xpadneo"; - version = "0.8.4"; + version = "0.9"; src = fetchFromGitHub { owner = "atar-axis"; repo = pname; rev = "v${version}"; - sha256 = "113xa2mxs2hc4fpjdk3jhhchy81kli6jxdd6vib7zz61n10cjb85"; + sha256 = "1f146snbjkr3dgg3g1dav4q2621560zg5ixsip2wsvp7wfvahnhy"; }; setSourceRoot = '' @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { postPatch = '' # Set kernel module version - substituteInPlace hid-xpadneo.c \ + substituteInPlace version.h \ --subst-var-by DO_NOT_CHANGE ${version} ''; From a19d6e6dcdcaf362718a2c11141aa7325373424f Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Sun, 4 Apr 2021 14:25:39 -0400 Subject: [PATCH 2/2] linuxPackages.xpadneo: 0.9 -> 0.9.1 --- pkgs/os-specific/linux/xpadneo/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkgs/os-specific/linux/xpadneo/default.nix b/pkgs/os-specific/linux/xpadneo/default.nix index f921a7647a8a..3007e54639d1 100644 --- a/pkgs/os-specific/linux/xpadneo/default.nix +++ b/pkgs/os-specific/linux/xpadneo/default.nix @@ -2,25 +2,19 @@ stdenv.mkDerivation rec { pname = "xpadneo"; - version = "0.9"; + version = "0.9.1"; src = fetchFromGitHub { owner = "atar-axis"; repo = pname; rev = "v${version}"; - sha256 = "1f146snbjkr3dgg3g1dav4q2621560zg5ixsip2wsvp7wfvahnhy"; + hash = "sha256-VUcS4OzvPj0o627ZWIOBqEAQJ4JuMCMjgaZoMkL/IHc="; }; setSourceRoot = '' export sourceRoot=$(pwd)/source/hid-xpadneo/src ''; - postPatch = '' - # Set kernel module version - substituteInPlace version.h \ - --subst-var-by DO_NOT_CHANGE ${version} - ''; - nativeBuildInputs = kernel.moduleBuildDependencies; buildInputs = [ bluez ]; @@ -28,6 +22,7 @@ stdenv.mkDerivation rec { "-C" "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" "M=$(sourceRoot)" + "VERSION=${version}" ]; buildFlags = [ "modules" ];