nongnu: nvidia-driver: Fix indentation.

* nongnu/packages/nvidia.scm (nvidia-driver): Fix indentation.
[inputs,native-inputs]: Sort alphabetically.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Hilton Chain 2022-11-20 21:15:40 +08:00 committed by Jonathan Brielmaier
parent 370749ab7b
commit 1544351697
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -6,6 +6,7 @@
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2022 Alexey Abramov <levenson@mmer.org>
;;; Copyright © 2022 Hilton Chain <hako@ultrarare.space>
;;;
;;; This file is not part of GNU Guix.
;;;
@ -125,8 +126,7 @@
(string-contains name ".so"))))
(install-file "nvidia_drv.so" (string-append #$output "/lib/xorg/modules/drivers/"))
(install-file (string-append "libglxserver_nvidia.so."
#$(package-version nvidia-driver))
(install-file (string-append "libglxserver_nvidia.so." #$(package-version nvidia-driver))
(string-append #$output "/lib/xorg/modules/extensions/"))
;; ICD Loader for OpenCL
@ -197,18 +197,18 @@
(rpath (string-join
(list "$ORIGIN"
(string-append #$output "/lib")
(string-append #$gcc:lib "/lib")
(string-append #$gtk+-2 "/lib")
(string-append #$atk "/lib")
(string-append #$cairo "/lib")
(string-append #$gdk-pixbuf "/lib")
(string-append #$glib "/lib")
(string-append #$glibc "/lib")
(string-append #$gtk+ "/lib")
(string-append #$libx11 "/lib")
(string-append #$libxext "/lib")
(string-append #$pango "/lib")
(string-append #$gtk+ "/lib")
(string-append #$gtk+-2 "/lib")
(string-append #$atk "/lib")
(string-append #$glib "/lib")
(string-append #$cairo "/lib")
(string-append #$gdk-pixbuf "/lib")
(string-append #$wayland "/lib")
(string-append #$gcc:lib "/lib"))
(string-append #$wayland "/lib"))
":")))
(define (patch-elf file)
(format #t "Patching ~a ...~%" file)
@ -247,45 +247,39 @@
(format #t "Linking ~a to ~a ...~%" mid file)
(symlink (basename file) mid-file))))
(find-files libdir "\\.so\\."))
(symlink (string-append "libglxserver_nvidia.so."
#$(package-version nvidia-driver))
(symlink (string-append "libglxserver_nvidia.so." #$(package-version nvidia-driver))
(string-append #$output "/lib/xorg/modules/extensions/" "libglxserver_nvidia.so"))))))))
(supported-systems '("x86_64-linux"))
(native-inputs
(list
patchelf
perl
python-2
which
xz))
(native-inputs (list patchelf perl python-2 which xz))
(inputs
(list
(list `(,gcc "lib")
atk
bash-minimal
cairo
coreutils
`(,gcc "lib")
gdk-pixbuf
glib
glibc
grep
gtk+
gtk+-2
kmod
glibc
libx11
libxext
linux-lts
pango
wayland))
(home-page "https://www.nvidia.com")
(synopsis "Proprietary Nvidia driver")
(description "This is the evil Nvidia driver. Don't forget to add
nvidia-driver to the udev-rules in your config.scm:
@code{(simple-service 'custom-udev-rules udev-service-type (list nvidia-driver))}
Further xorg should be configured by adding:
@code{(modules (cons* nvidia-driver %default-xorg-modules))
(drivers '(\"nvidia\"))} to @code{xorg-configuration}.")
(license (license:nonfree (format #f "file:///share/doc/nvidia-driver-~a/LICENSE" version)))))
(synopsis "Proprietary NVIDIA driver")
(description "This is the evil NVIDIA driver. Don't forget to add
@code{nvidia-driver} to the @code{udev-rules} in your @file{config.scm}:
@code{(simple-service 'custom-udev-rules udev-service-type (list
nvidia-driver))}. Further xorg should be configured by adding: @code{(modules
(cons* nvidia-driver %default-xorg-modules)) (drivers '(\"nvidia\"))} to
@code{xorg-configuration}.")
(license
(license:nonfree
(format #f "file:///share/doc/nvidia-driver-~a/LICENSE" version)))))
(define-public nvidia-exec
(package