mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
29 lines
885 B
Nix
29 lines
885 B
Nix
{ lib, stdenv, fetchFromGitHub, kernel, kmod }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tuxedo-keyboard-${kernel.version}";
|
|
version = "2019-08-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tuxedocomputers";
|
|
repo = "tuxedo-keyboard";
|
|
rev = "d65e76e84cfd8169591fc2a0a7c9219fa19da1b5";
|
|
sha256 = "1s48qpwybwh5pwqas2d1v2a7x4r97sm4hr9i4902r1d7h384bv17";
|
|
};
|
|
|
|
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/lib/modules/${kernel.modDirVersion}"
|
|
mv src/tuxedo_keyboard.ko $out/lib/modules/${kernel.modDirVersion}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Full color keyboard driver for tuxedo computers laptops";
|
|
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.blanky0230 ];
|
|
};
|
|
}
|