mtdev: add FreeBSD support

This commit is contained in:
Alyssa Ross 2023-01-14 19:36:23 +00:00
parent 44dcf45342
commit b994008cbf
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

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;
};
}