2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, cmake, libyamlcpp,
|
2018-07-17 21:11:16 +01:00
|
|
|
libevdev, udev }:
|
2017-09-02 07:17:53 +01:00
|
|
|
|
|
|
|
let
|
2020-06-10 00:55:56 +01:00
|
|
|
version = "0.2.1";
|
2017-09-02 07:17:53 +01: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-10 00:55:56 +01:00
|
|
|
sha256 = "0lqz89wsf9r5xdgflincysxg4l8fpgg5z8zczhhrg9s5787srfzi";
|
2017-09-02 07:17:53 +01:00
|
|
|
};
|
|
|
|
|
2018-01-30 16:11:52 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2018-07-17 21:11:16 +01:00
|
|
|
buildInputs = [ libevdev udev libyamlcpp ];
|
2017-09-02 07:17:53 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.vyp ];
|
2017-09-02 07:17:53 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|