depot/third_party/nixpkgs/pkgs/os-specific/linux/qc71_laptop/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

34 lines
922 B
Nix

{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
pname = "qc71_laptop";
version = "unstable-2023-03-02";
src = fetchFromGitHub {
owner = "pobrn";
repo = "qc71_laptop";
rev = "8805dc5639f6659addf153a295ad4bbaa2483fa3";
hash = "sha256-wg7APGArjrl9DEAHTG6BknOBx+UbtNrzziwmLueKPfA=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"VERSION=${version}"
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
installPhase = ''
runHook preInstall
install -D qc71_laptop.ko -t $out/lib/modules/${kernel.modDirVersion}/extra
runHook postInstall
'';
meta = with lib; {
description = "Linux driver for QC71 laptop";
homepage = "https://github.com/pobrn/qc71_laptop/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ aacebedo ];
platforms = platforms.linux;
};
}