Files
nixpkgs/pkgs/by-name/ip/iptsd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
meson,
ninja,
pkg-config,
cli11,
eigen,
hidrd,
inih,
microsoft-gsl,
spdlog,
systemd,
udevCheckHook,
}:
stdenv.mkDerivation rec {
pname = "iptsd";
version = "3";
src = fetchFromGitHub {
owner = "linux-surface";
repo = "iptsd";
tag = "v${version}";
hash = "sha256-3z3A9qywmsSW1tlJ6LePC5wudM/FITTAFyuPkbHlid0=";
};
nativeBuildInputs = [
cmake
meson
ninja
pkg-config
udevCheckHook
];
dontUseCmakeConfigure = true;
buildInputs = [
cli11
eigen
hidrd
inih
microsoft-gsl
spdlog
systemd
];
doInstallCheck = true;
# Original installs udev rules and service config into global paths
postPatch = ''
substituteInPlace etc/meson.build \
--replace-fail "install_dir: unitdir" "install_dir: '$out/etc/systemd/system'" \
--replace-fail "install_dir: rulesdir" "install_dir: '$out/etc/udev/rules.d'"
substituteInPlace etc/scripts/iptsd-find-service \
--replace-fail "systemd-escape" "${lib.getExe' systemd "systemd-escape"}"
substituteInPlace etc/udev/50-iptsd.rules.in \
--replace-fail "/bin/systemd-escape" "${lib.getExe' systemd "systemd-escape"}"
'';
mesonFlags = [
"-Dservice_manager=systemd"
"-Dsample_config=false"
"-Ddebug_tools="
"-Db_lto=false" # plugin needed to handle lto object -> undefined reference to ...
];
meta = {
changelog = "https://github.com/linux-surface/iptsd/releases/tag/v${version}";
description = "Userspace daemon for Intel Precise Touch & Stylus";
homepage = "https://github.com/linux-surface/iptsd";
license = lib.licenses.gpl2Plus;
mainProgram = "iptsd";
maintainers = with lib.maintainers; [
tomberek
dotlambda
];
platforms = lib.platforms.linux;
};
}