nix-config/patches/nixpkgs-pull-296470.patch
Zuckerberg d8b9aa64c2
Some checks failed
Check Flake / check-flake (push) Failing after 17s
Update nixpkgs
2024-03-16 18:14:35 -06:00

53 lines
1.6 KiB
Diff

diff --git a/pkgs/os-specific/linux/xone/default.nix b/pkgs/os-specific/linux/xone/default.nix
index 104b7952f2be22..b1e2ce570a2d2d 100644
--- a/pkgs/os-specific/linux/xone/default.nix
+++ b/pkgs/os-specific/linux/xone/default.nix
@@ -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=0.3-unstable-2024-03-16"
];
buildFlags = [ "modules" ];
@@ -45,4 +36,4 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
};
}
-
+)