2021-03-20 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config, python3Packages
|
2020-04-24 23:36:52 +00:00
|
|
|
, libevdev
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "evemu";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# We could have downloaded a release tarball from cgit, but it changes hash
|
|
|
|
# each time it is downloaded :/
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.freedesktop.org/git/evemu";
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-SQDaARuqBMBVlUz+Nw6mjdxaZfVOukmzTlIqy8U2rus=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook python3Packages.python ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
buildInputs = [ python3Packages.evdev libevdev ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Records and replays device descriptions and events to emulate input devices through the kernel's input system";
|
|
|
|
homepage = "https://www.freedesktop.org/wiki/Evemu/";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = with licenses; [ lgpl3Only gpl3Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.amorsillo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|