xone: 0.3 -> 0.3-unstable-2024-03-16

This commit is contained in:
nwright 2024-03-16 13:44:03 -04:00
parent 0214817877
commit 143bb15035

View file

@ -1,27 +1,18 @@
{ stdenv, lib, fetchFromGitHub, kernel, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xone";
version = "0.3";
version = "0.3-unstable-2024-03-16";
src = fetchFromGitHub {
owner = "medusalix";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-h+j4xCV9R6hp9trsv1NByh9m0UBafOz42ZuYUjclILE=";
repo = "xone";
rev = "948d2302acdd6333295eaba4da06d96677290ad3";
hash = "sha256-srAEw1ai5KT0rmVUL3Dut9R2mNb00AAZVCcINikh2sM=";
};
patches = [
# Fix build on kernel 6.3
(fetchpatch {
name = "kernel-6.3.patch";
url = "https://github.com/medusalix/xone/commit/bbf0dcc484c3f5611f4e375da43e0e0ef08f3d18.patch";
hash = "sha256-A2OzRRk4XT++rS6k6EIyiPy/LJptvVRUxoP7CIGrPWU=";
})
];
setSourceRoot = ''
export sourceRoot=$(pwd)/${src.name}
export sourceRoot=$(pwd)/${finalAttrs.src.name}
'';
nativeBuildInputs = kernel.moduleBuildDependencies;
@ -30,7 +21,7 @@ stdenv.mkDerivation rec {
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(sourceRoot)"
"VERSION=${version}"
"VERSION=${finalAttrs.version}"
];
buildFlags = [ "modules" ];
@ -45,4 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
)