New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macbook15-spi-driver: init at 0.1 #113214
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,31 @@ | ||||||||||||||
{ lib, stdenv, kernel, fetchFromGitHub, }: | ||||||||||||||
|
||||||||||||||
stdenv.mkDerivation rec { | ||||||||||||||
name = "macbook15-spi-driver"; | ||||||||||||||
version = "0.1"; | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect version. |
||||||||||||||
|
||||||||||||||
src = fetchFromGitHub { | ||||||||||||||
owner = "hlolli"; | ||||||||||||||
repo = "macbook15-spi-driver"; | ||||||||||||||
rev = "86a2f37ca0d2a4729a32b636dc48f39c522dd8ad"; | ||||||||||||||
sha256 = "1724s3y8ad14s8a0rag9jadb69j0j2vn566fzg6basx2bmfrj8gi"; | ||||||||||||||
}; | ||||||||||||||
|
||||||||||||||
buildPhase = '' | ||||||||||||||
make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \ | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can do also see |
||||||||||||||
-j$NIX_BUILD_CORES M=$(pwd) modules | ||||||||||||||
''; | ||||||||||||||
|
||||||||||||||
installPhase = '' | ||||||||||||||
make -C ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \ | ||||||||||||||
INSTALL_MOD_PATH=$out M=$(pwd) modules_install | ||||||||||||||
''; | ||||||||||||||
|
||||||||||||||
meta = with lib; { | ||||||||||||||
description = "Driver for the touchbar and ambient-light-sensor on 2019 MacBook Pro's."; | ||||||||||||||
homepage = "https://github.com/hlolli/macbook15-spi-driver"; | ||||||||||||||
license = lib.licenses.gpl2Only; | ||||||||||||||
platforms = platforms.linux; | ||||||||||||||
maintainers = [ lib.maintainers.hlolli ]; | ||||||||||||||
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
}; | ||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.