diff --git a/pkgs/by-name/ts/tslib/package.nix b/pkgs/by-name/ts/tslib/package.nix new file mode 100644 index 0000000000000..3e94b24e5dca7 --- /dev/null +++ b/pkgs/by-name/ts/tslib/package.nix @@ -0,0 +1,29 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tslib"; + version = "1.23"; + hash = "sha256-2YJDADh/WCksAEIjngAdji98YGmwjpvxSBZkxAwFc7k="; + + src = fetchFromGitHub { + owner = "libts"; + repo = finalAttrs.pname; + rev = finalAttrs.version; + sha256 = finalAttrs.hash; + }; + + nativeBuildInputs = [ cmake ]; + + meta = { + description = "Touchscreen access library"; + homepage = "http://www.tslib.org/"; + license = lib.licenses.lgpl21; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ shogo ]; + }; +})