1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/inputmethods/interception-tools/default.nix

34 lines
986 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, cmake, libyamlcpp,
libevdev, udev }:
let
2020-06-10 00:55:56 +01:00
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";
2020-06-10 00:55:56 +01:00
sha256 = "0lqz89wsf9r5xdgflincysxg4l8fpgg5z8zczhhrg9s5787srfzi";
};
nativeBuildInputs = [ cmake pkg-config ];
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 09:19:50 +00:00
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.vyp ];
platforms = lib.platforms.linux;
};
}