diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-06-01 15:10:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 15:10:33 +0200 |
commit | cbc12cc502c31fe6e9af914e84961e939f965a58 (patch) | |
tree | 16abb7d02a7f67d0df7bfb8835293ead1f278d12 /pkgs/applications/misc | |
parent | 11c0fbf043091d1a9b972857df5289c138ef2bc1 (diff) | |
parent | e3f67ccdc0653887621ebc56986c412080d237ae (diff) |
Merge pull request #124600 from tomberek/itpsd_init
iptsd: init at 0.4
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/iptsd/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/misc/iptsd/default.nix b/pkgs/applications/misc/iptsd/default.nix new file mode 100644 index 0000000000000..c5a23840264d3 --- /dev/null +++ b/pkgs/applications/misc/iptsd/default.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, systemd, inih }: + +stdenv.mkDerivation rec { + pname = "iptsd"; + version = "0.4"; + + src = fetchFromGitHub { + owner = "linux-surface"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-CoPgkt7n2kk7WlQHe0RjNlxfp2Nd8BbIE2gyf0bOBy4="; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + + buildInputs = [ systemd inih ]; + + # Original installs udev rules and service config into global paths + postPatch = '' + substituteInPlace meson.build \ + --replace "install_dir: unitdir" "install_dir: datadir" \ + --replace "install_dir: rulesdir" "install_dir: datadir" \ + ''; + mesonFlags = [ + "-Dsystemd=true" + "-Dsample_config=false" + "-Ddebug_tool=false" + ]; + + meta = with lib; { + description = "Userspace daemon for Intel Precise Touch & Stylus"; + homepage = "https://github.com/linux-surface/iptsd"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ tomberek ]; + platforms = platforms.linux; + }; +} |