mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
34 lines
1000 B
Nix
34 lines
1000 B
Nix
{ stdenv, fetchurl, pkgconfig, cmake, libyamlcpp,
|
|
libevdev, udev }:
|
|
|
|
let
|
|
version = "0.2.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 = "0lqz89wsf9r5xdgflincysxg4l8fpgg5z8zczhhrg9s5787srfzi";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
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";
|
|
license = stdenv.lib.licenses.gpl3;
|
|
maintainers = [ stdenv.lib.maintainers.vyp ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|