Merge pull request #118632 from MetaDark/linuxPackages.xpadneo
This commit is contained in:
commit
8eb5e1647d
1 changed files with 3 additions and 8 deletions
|
@ -2,25 +2,19 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xpadneo";
|
pname = "xpadneo";
|
||||||
version = "0.8.4";
|
version = "0.9.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "atar-axis";
|
owner = "atar-axis";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "113xa2mxs2hc4fpjdk3jhhchy81kli6jxdd6vib7zz61n10cjb85";
|
hash = "sha256-VUcS4OzvPj0o627ZWIOBqEAQJ4JuMCMjgaZoMkL/IHc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
setSourceRoot = ''
|
setSourceRoot = ''
|
||||||
export sourceRoot=$(pwd)/source/hid-xpadneo/src
|
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;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
buildInputs = [ bluez ];
|
buildInputs = [ bluez ];
|
||||||
|
|
||||||
|
@ -28,6 +22,7 @@ stdenv.mkDerivation rec {
|
||||||
"-C"
|
"-C"
|
||||||
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
"M=$(sourceRoot)"
|
"M=$(sourceRoot)"
|
||||||
|
"VERSION=${version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildFlags = [ "modules" ];
|
buildFlags = [ "modules" ];
|
||||||
|
|
Loading…
Reference in a new issue