summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-01-04 20:45:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-01-04 20:45:44 +0000
commit499d79cec5d33b19330c43bbb4e4cedfb1e4e2e2 (patch)
tree989d6c6abfc5746069f92c564d4395531ea3171f
parenta0b8a4a6131435f52b409c1565751f5c64051343 (diff)
x11-misc/nvidia-prime : new package
-rw-r--r--x11-misc/nvidia-prime/files/nvidia-prime.conf4
-rw-r--r--x11-misc/nvidia-prime/files/prime-run2
-rw-r--r--x11-misc/nvidia-prime/nvidia-prime-314.ebuild24
3 files changed, 30 insertions, 0 deletions
diff --git a/x11-misc/nvidia-prime/files/nvidia-prime.conf b/x11-misc/nvidia-prime/files/nvidia-prime.conf
new file mode 100644
index 00000000..71b45ddf
--- /dev/null
+++ b/x11-misc/nvidia-prime/files/nvidia-prime.conf
@@ -0,0 +1,4 @@
+Section "ServerLayout"
+ Identifier "layout"
+ Option "AllowNVIDIAGPUScreens"
+EndSection
diff --git a/x11-misc/nvidia-prime/files/prime-run b/x11-misc/nvidia-prime/files/prime-run
new file mode 100644
index 00000000..59d01de2
--- /dev/null
+++ b/x11-misc/nvidia-prime/files/prime-run
@@ -0,0 +1,2 @@
+#!/bin/bash
+__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
diff --git a/x11-misc/nvidia-prime/nvidia-prime-314.ebuild b/x11-misc/nvidia-prime/nvidia-prime-314.ebuild
new file mode 100644
index 00000000..8eccbb06
--- /dev/null
+++ b/x11-misc/nvidia-prime/nvidia-prime-314.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2016-2020 Redcore Linux Project
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=7
+
+DESCRIPTION="NVIDIA Prime Render Offload configuration and utilities"
+HOMEPAGE="https://redcorelinux.org"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+RDEPEND=""
+
+S="${FILESDIR}"
+
+src_install() {
+ dobin prime-run
+ insinto /usr/share/X11/xorg.conf.d
+ newins nvidia-prime.conf 50-nvidia-prime.conf
+}