forked from hpfr/system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is likely the last update I will make before I remove these files, since I bought a new laptop and plan to sell the Surface. An excellent screen, stylus implementation, and build couldn't outweigh the poor battery life, storage, and performance, not to mention the incessant tinkering necessary to keep the patched NixOS Linux version up-to-date. - Remove 4.19 support. The reverse-engineered IPTS is better and more stable than the old binary - Remove IPTS binary package - Add iptsd package - Rather than getting a kernel version from a GitHub workflow file, just use the latest kernel and allow the user to override by passing a kernel version with a minor version such as 5.9.11 - Update wake and sleep scripts from linux-surface wiki - Add iptsd systemd service, udev rules, and config. Adding the iptsd package to services.udev.packages and systemd.packages was not enough to get it to build with the systemd flag enabled. There was still a permission error
- Loading branch information
Showing
4 changed files
with
156 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ stdenv, fetchFromGitHub, meson, ninja, pkg-config, systemd, inih }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "iptsd"; | ||
version = "0.3.1"; | ||
src = fetchFromGitHub { | ||
owner = "linux-surface"; | ||
repo = pname; | ||
rev = "v" + version; | ||
sha256 = "1007id9lijrpj69yc5wwip2gk3rbvnfjjwxj92xmniww5nfvdjsf"; | ||
}; | ||
|
||
nativeBuildInputs = [ meson ninja pkg-config ]; | ||
|
||
buildInputs = [ systemd inih ]; | ||
|
||
mesonFlags = [ | ||
# should be able to enable the systemd flag with the right nixos options | ||
# like systemd.packages and services.udev.packages, but the build failed | ||
# when I used those and dropped the disable | ||
"-Dsystemd=false" | ||
|
||
"-Dsample_config=false" | ||
"-Ddebug_tool=false" | ||
]; | ||
|
||
meta = with stdenv.lib; { | ||
description = " Userspace daemon for Intel Precise Touch & Stylus"; | ||
homepage = "https://github.com/linux-surface/iptsd"; | ||
license = licenses.gpl2Only; | ||
maintainers = with maintainers; [ ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |