From patchwork Sun Feb 14 02:12:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 27042 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E0A4F27BC2E; Sun, 14 Feb 2021 02:13:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2626827BC27 for ; Sun, 14 Feb 2021 02:13:10 +0000 (GMT) Received: from localhost ([::1]:45410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB6uL-0002tt-8z for patchwork@mira.cbaines.net; Sat, 13 Feb 2021 21:13:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB6uE-0002tS-My for guix-patches@gnu.org; Sat, 13 Feb 2021 21:13:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB6uE-00012p-Fn for guix-patches@gnu.org; Sat, 13 Feb 2021 21:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lB6uE-0004DT-9k for guix-patches@gnu.org; Sat, 13 Feb 2021 21:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46500] [PATCH] gnu: Add monado Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Feb 2021 02:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46500 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46500@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161326876416182 (code B ref -1); Sun, 14 Feb 2021 02:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Feb 2021 02:12:44 +0000 Received: from localhost ([127.0.0.1]:35290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6tv-0004Cu-Mu for submit@debbugs.gnu.org; Sat, 13 Feb 2021 21:12:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:47018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lB6tt-0004Cn-P3 for submit@debbugs.gnu.org; Sat, 13 Feb 2021 21:12:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB6tt-0002ry-EW for guix-patches@gnu.org; Sat, 13 Feb 2021 21:12:41 -0500 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]:36089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lB6tr-00011o-Db for guix-patches@gnu.org; Sat, 13 Feb 2021 21:12:41 -0500 Received: by mail-io1-xd32.google.com with SMTP id n14so3331241iog.3 for ; Sat, 13 Feb 2021 18:12:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atai-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=mQcsKDXkYoSgNYf5OIdAhd884tQrC4AJjmxX2+aRzvM=; b=JuKSQWFn6Uklq7Gfnlk5tKiFXmI4strKJko2ngr6QdP/duVsjQGeZoeevt7Lay/e1N tIEyImcNC/2T0EHijydXbBO8IkYZ7/zmEZqC42al6IVhYUsJkJ8le28vUPnpw0XHOlkS vyxKiyufA20DaNqoxaPmONw1hwC44umMhYjL9+BCtB769U1zpZtlCsEuTPB1Zbm21Z6X zZQrtA54ByB6OV4/ra3Q64C9bjapUqhldgdy5LTkPlg9ENdD7Ilt+jRMieYplfUiIv8Y NUEfI4ZSXjl2DhkfMyQUJtkH8iLKiTw+yCmb9L48fPZeD3MTGSuXYvNhtzpIXoNnfQat OfHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=mQcsKDXkYoSgNYf5OIdAhd884tQrC4AJjmxX2+aRzvM=; b=oIzicCYwjOO++DwftIf43soO5IRjgofL6d0cmyYSncxn0UAeec1J9DJ+8bDZz8Jeym D4I5EZbQenXG109S/SbguxBR1G1PvwAsGt6Nhl+Uf9Q62q5n7gSdl3T7YL3vheUdgRyz JiFzgULy+s7EqCPU91S+1/2qbJ4/1iyJuHRj8xfkNskHnWTIlA8njaoo6qa7C0TpbD7o cF+H7vF/wH2LsU0Y51k++ODJ/pzl6MDXG/1TZ/GRKcsrVe/qxyDc9hOkKIW+8YoecXAx he4m1co3tA1OssTVFd4DQPTs96DSZB3Px/WFxdLLKSra0neAV2kC9o0IkDl9Ow4y3QZR 1Abw== X-Gm-Message-State: AOAM530Cp0xk3221xj4gAY9tGTu0v6qKZyKYncFJd5i+NsCyyYG6Lukm 4vbzpgLoAdOH39IntYnSsGhPIQukWcgYUuLhiNquDU5bQTTfog== X-Google-Smtp-Source: ABdhPJy9BFw3RXNdQorfcjoo3m/PxDg20cOucBc7mIOuPPyw4wk7kXyM9mdgwRc66hudmIXGJWfiSrr1Vr+Ugm56lu0= X-Received: by 2002:a02:242d:: with SMTP id f45mr5264621jaa.7.1613268756967; Sat, 13 Feb 2021 18:12:36 -0800 (PST) MIME-Version: 1.0 From: Andy Tai Date: Sat, 13 Feb 2021 18:12:01 -0800 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::d32; envelope-from=lichengtai@gmail.com; helo=mail-io1-xd32.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/graphics.scm (monado): New variable --- gnu/packages/graphics.scm | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) + (license (license:x11-style "https://gitlab.freedesktop.org/monado/monado/-/blob/master/LICENSE")))) + diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 7cb4aecec2..5b8621c390 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2020 Maxim Cournoyer ;;; Copyright © 2020 Gabriel Arazas ;;; Copyright © 2021 Antoine Côté +;;; Copyright © 2021 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +75,7 @@ #:use-module (gnu packages imagemagick) #:use-module (gnu packages jemalloc) #:use-module (gnu packages kde-frameworks) + #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages lua) #:use-module (gnu packages maths) @@ -97,6 +99,7 @@ #:use-module (gnu packages tbb) #:use-module (gnu packages upnp) #:use-module (gnu packages video) + #:use-module (gnu packages vulkan) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -1914,3 +1917,46 @@ Some feature highlights: @item Automatic port forwarding with UPnP @end itemize\n") (license license:gpl3+)))) + + +(define-public monado + (package + (name "monado") + (version "21.0.0") + (source (origin + (method url-fetch) + (uri (string-append "https://gitlab.freedesktop.org/" name "/" + name "/-/archive/v" version "/" + name "-v" version ".tar.bz2")) + (sha256 + (base32 + "0n04k7a8b0i8ga0kbzh7qxmvni1ijawgk98s83519vxg4d0yyjbq")))) + (build-system meson-build-system) + (inputs + `(("ffmpeg" ,ffmpeg) + ("glslang" ,glslang) + ("libudev" ,eudev) + ("libusb" ,libusb) + ("libxcb" ,libxcb) + ("libxrandr" ,libxrandr) + ("opengl" ,mesa) + ("v4l" ,v4l-utils) + ("vulkan-loader" ,vulkan-loader) + )) + (native-inputs + `(("eigen" ,eigen) + ("pkg-config" ,pkg-config) + ("vulkan-headers" ,vulkan-headers) + )) + + (home-page "https://monado.freedesktop.org/") + (synopsis "The open source OpenXR runtime") + (description + "Monado is an open source XR runtime delivering immersive experiences such as VR +and AR on mobile, PC/desktop, and any other device(because gosh darn peoplecome +up with a lot of weird hardware). Monado aims to be a complete and conforming +implementation of the OpenXR API made by Khronos. The project currently is being +developed for GNU/Linux and aims to support other operating systems in the near +future.")