2018-01-30 16:11:52 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, cmake, libyamlcpp,
|
2017-09-02 06:17:53 +00:00
|
|
|
libevdev, libudev }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.1.1";
|
|
|
|
baseName = "interception-tools";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.com/interception/linux/tools/repository/v${version}/archive.tar.gz";
|
|
|
|
sha256 = "14g4pphvylqdb922va322z1pbp12ap753hcf7zf9sii1ikvif83j";
|
|
|
|
};
|
|
|
|
|
2018-01-30 16:11:52 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ libevdev libudev libyamlcpp ];
|
2017-09-02 06:17:53 +00: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 06:17:53 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|