2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, cmake, libyamlcpp,
|
2020-04-24 23:36:52 +00:00
|
|
|
libevdev, udev }:
|
|
|
|
|
|
|
|
let
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "0.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
baseName = "interception-tools";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.com/interception/linux/tools/repository/v${version}/archive.tar.gz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0lqz89wsf9r5xdgflincysxg4l8fpgg5z8zczhhrg9s5787srfzi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libevdev udev libyamlcpp ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace \
|
|
|
|
'"/usr/include/libevdev-1.0"' \
|
|
|
|
"\"$(pkg-config --cflags libevdev | cut -c 3-)\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./fix-udevmon-configuration-job-path.patch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A minimal composable infrastructure on top of libudev and libevdev";
|
|
|
|
homepage = "https://gitlab.com/interception/linux/tools";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.vyp ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|