nongnu: Add nvidia-libs-nvenc.
* nongnu/packages/nvidia.scm (nvidia-libs-nvdec): New variable.
This commit is contained in:
parent
b38370eb80
commit
3995068347
|
@ -406,6 +406,51 @@ packages that have been compiled with a mesa output, take a look at the nvda
|
||||||
package.")
|
package.")
|
||||||
(license (license:nonfree (format #f "file:///share/doc/nvidia-driver-~a/LICENSE" version)))))
|
(license (license:nonfree (format #f "file:///share/doc/nvidia-driver-~a/LICENSE" version)))))
|
||||||
|
|
||||||
|
(define-public nvidia-libs-nvenc
|
||||||
|
(package
|
||||||
|
(inherit nvidia-libs)
|
||||||
|
(name "nvidia-libs-nvenc")
|
||||||
|
(version nvidia-version)
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments nvidia-libs)
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'install 'enable-nvenc
|
||||||
|
(lambda* _
|
||||||
|
(let* ((tmp-patch-sh "/tmp/patch.sh")
|
||||||
|
(tmp-patch-fbc-sh "/tmp/patch-fbc.sh")
|
||||||
|
(nvidia-patch #$(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference (url
|
||||||
|
"https://github.com/keylase/nvidia-patch")
|
||||||
|
(commit
|
||||||
|
"86e009af74a31c3d31e64fdc402e92b47090e550")))
|
||||||
|
(sha256 (base32
|
||||||
|
"10bdz2613kij045ar1df4k450zni369n89iiyvxici9fjs1vqyix")))))
|
||||||
|
(install-file (string-append nvidia-patch "/patch.sh")
|
||||||
|
"/tmp")
|
||||||
|
(install-file (string-append nvidia-patch "/patch-fbc.sh")
|
||||||
|
"/tmp")
|
||||||
|
(substitute* (list tmp-patch-sh tmp-patch-fbc-sh)
|
||||||
|
(("nvidia-smi")
|
||||||
|
"true")
|
||||||
|
(("/opt")
|
||||||
|
"/tmp")
|
||||||
|
(("ldconfig")
|
||||||
|
"")
|
||||||
|
(("/usr/lib/x86_64-linux-gnu")
|
||||||
|
(string-append #$output "/lib"))
|
||||||
|
(("/bin/sh")
|
||||||
|
(string-append #$bash-minimal "/bin/sh")))
|
||||||
|
(invoke (string-append #$bash-minimal "/bin/bash")
|
||||||
|
tmp-patch-sh "-d"
|
||||||
|
#$nvidia-version)
|
||||||
|
(invoke (string-append #$bash-minimal "/bin/bash")
|
||||||
|
tmp-patch-fbc-sh "-d"
|
||||||
|
#$nvidia-version))))))))
|
||||||
|
(native-inputs `(("bash" ,bash-minimal)
|
||||||
|
,@(package-native-inputs nvidia-libs)))))
|
||||||
|
|
||||||
(define-public nvidia-module
|
(define-public nvidia-module
|
||||||
(package
|
(package
|
||||||
(name "nvidia-module")
|
(name "nvidia-module")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user