mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
linuxPackages.tuxedo-drivers: 4.14.0 -> 4.15.4 (#441147)
This commit is contained in:
@@ -7,22 +7,34 @@
|
||||
kmod,
|
||||
pahole,
|
||||
gitUpdater,
|
||||
udevCheckHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tuxedo-drivers-${kernel.version}";
|
||||
version = "4.14.0";
|
||||
version = "4.15.4";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
group = "tuxedocomputers";
|
||||
owner = "development/packages";
|
||||
repo = "tuxedo-drivers";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-79YZaK8WrHOxSUJWxi4lc+foh4xz3EgRnjw+OrL8yqU=";
|
||||
hash = "sha256-WJeju+czbCw03ALW7yzGAFENCEAvDdKqHvedchd7NVY=";
|
||||
};
|
||||
|
||||
patches = [ ./no-cp-etc-usr.patch ];
|
||||
|
||||
postInstall = ''
|
||||
echo "Running postInstallhook"
|
||||
install -Dm 0644 -t $out/etc/udev/rules.d usr/lib/udev/rules.d/*
|
||||
'';
|
||||
|
||||
buildInputs = [ pahole ];
|
||||
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
|
||||
nativeBuildInputs = [
|
||||
kmod
|
||||
udevCheckHook
|
||||
]
|
||||
++ kernel.moduleBuildDependencies;
|
||||
|
||||
makeFlags = kernelModuleMakeFlags ++ [
|
||||
"KERNELRELEASE=${kernel.modDirVersion}"
|
||||
@@ -30,6 +42,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
rev-prefix = "v";
|
||||
};
|
||||
|
||||
12
pkgs/os-specific/linux/tuxedo-drivers/no-cp-etc-usr.patch
Normal file
12
pkgs/os-specific/linux/tuxedo-drivers/no-cp-etc-usr.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 75a6bc1..6021d42 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -30,7 +30,6 @@ all:
|
||||
|
||||
install: all
|
||||
make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) modules_install
|
||||
- cp -r etc usr /
|
||||
|
||||
clean:
|
||||
make -C $(KDIR) M=$(PWD) $(MAKEFLAGS) clean
|
||||
Reference in New Issue
Block a user