mtdev: add FreeBSD support

(cherry picked from commit b994008cbf)
This commit is contained in:
Alyssa Ross
2023-01-14 19:36:23 +00:00
committed by github-actions[bot]
parent 489692a215
commit d1f3497d2e

View File

@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, evdev-proto }:
stdenv.mkDerivation rec {
pname = "mtdev";
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm";
};
buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD evdev-proto;
meta = with lib; {
homepage = "https://bitmath.org/code/mtdev/";
description = "Multitouch Protocol Translation Library";
@@ -20,6 +22,6 @@ stdenv.mkDerivation rec {
See the kernel documentation for further details.
'';
license = licenses.mit;
platforms = platforms.linux;
platforms = with platforms; freebsd ++ linux;
};
}