2021-05-27 15:48:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, systemd, inih }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iptsd";
|
2022-07-28 16:35:03 +00:00
|
|
|
version = "0.5.1";
|
2021-05-27 15:48:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linux-surface";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-28 16:35:03 +00:00
|
|
|
sha256 = "sha256-du5TC3I5+hWifjdnaeTj2QPJ6/oTXZqaOrZJkef/USU=";
|
2021-05-27 15:48:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = [
|
2022-01-22 17:16:52 +00:00
|
|
|
"-Dservice_manager=systemd"
|
2021-05-27 15:48:59 +00:00
|
|
|
"-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;
|
|
|
|
};
|
|
|
|
}
|