openrazer: 3.0.0 -> 3.0.1, mark broken for kernels < 4.19
This commit is contained in:
parent
b4833b346c
commit
438b60f3f7
|
@ -1,16 +1,16 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
}: rec {
|
||||
version = "3.0.0";
|
||||
version = "3.0.1";
|
||||
src = fetchFromGitHub {
|
||||
owner = "openrazer";
|
||||
repo = "openrazer";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-gw6Qt9BntPcF3zw19PXftDbhoCeBr8hwrujy51rb5Fc=";
|
||||
sha256 = "sha256-ptB0jP0kp1Liynkfz0B0OMw6xNQG1s8IvxhgNAdEytM=";
|
||||
};
|
||||
meta = with lib; {
|
||||
homepage = "https://openrazer.github.io/";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ roelvandijk evanjs ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
|
|
@ -10,7 +10,8 @@ let
|
|||
common = import ../../../development/python-modules/openrazer/common.nix { inherit lib fetchFromGitHub; };
|
||||
in
|
||||
stdenv.mkDerivation (common // {
|
||||
name = "openrazer-${common.version}-${kernel.version}";
|
||||
pname = "openrazer";
|
||||
version = "${common.version}-${kernel.version}";
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
|
@ -19,6 +20,8 @@ stdenv.mkDerivation (common // {
|
|||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
binDir="$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/hid"
|
||||
mkdir -p "$binDir"
|
||||
cp -v driver/*.ko "$binDir"
|
||||
|
@ -32,9 +35,12 @@ stdenv.mkDerivation (common // {
|
|||
--replace /usr/bin/logger ${util-linux}/bin/logger \
|
||||
--replace chgrp ${coreutils}/bin/chgrp \
|
||||
--replace "PATH='/sbin:/bin:/usr/sbin:/usr/bin'" ""
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = common.meta // {
|
||||
description = "An entirely open source Linux driver that allows you to manage your Razer peripherals on GNU/Linux";
|
||||
broken = kernel.kernelOlder "4.19";
|
||||
};
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue