Commit graph

44 commits

Author SHA1 Message Date
Dmitry Kalinkin
161b9b2436
Merge pull request #99323 from eadwu/nvidia/hardware.nvidia.package
nixos: hardware.nvidia.package option for selecting nvidia package
2021-01-30 22:08:37 -05:00
Ben Siraphob
16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Frederik Rietdijk
450cb04f16
nixos: hardware.nvidia.package option for selecting nvidia package
Make it possible to select a derivation to use. This also moves some
logic that belongs to the derivation back into it.
2021-01-11 13:01:48 -05:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Joe Hermaszewski
99d2db8dce
nvidia-x11.vulkan_beta: init at 450.56.11 (#97882)
- This is fetched from a different URL, so allow passing that explicitly.

- There also isn't an nvidia-persistenced or nvidia-settings release for
  this version, so use 450.57 instead. Also implement passing
  persistenced and settings version explicitly.

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-09-24 10:53:05 -04:00
Matthew Bauer
31d8669a72 nvidia-x11: add disable32Bit arg to not include 32-bit nvidia
In some contexts, we don’t want to have to build the whole i686 stdenv
just to use the x86_64 nvidia driver. It’s hard to know ahead of time
what we want, so it’s best to leave this as an overridable option.
2020-08-20 10:29:28 -05:00
Edmund Wu
7d3150fe8f
nvidia_x11: disable i686-linux on unsupported versions 2020-06-24 19:54:19 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Edmund Wu
3b3876649d
nvidia_x11: include libdrm in rpath
Needed for PRIME render offload specifically
2019-12-10 11:35:30 -05:00
Ambroz Bizjak
d1226bff8e nvidia-x11: Set 32-bit library paths for 32-bit libraries.
Patchelf was being called to point RUNPATH to 64-bit library paths even for 32-bit libraries.
2019-06-15 10:54:50 +02:00
Edmund Wu
f81836cc30
nvidia_x11: 418.56 -> 418.74 2019-05-08 18:25:16 -04:00
Edmund Wu
0f9672d28d
nvidia_x11_beta: stable -> 430.09 2019-04-23 17:10:06 -04:00
Matthew Bauer
290a5d916e treewide: update homepages to https where available
Based on "problems" from repology:

https://repology.org/repository/nix_unstable/problems

Mostly simple changes to reflect redirects.
2019-04-15 10:10:05 -04:00
Herman Fries
ca1f092fe9 linuxPackages.nvidia_x11*: Add maintainer: baracoder
I bought some recent nVidia hardware, so I am stuck with it for a couple
of years and because of this, I have an interest in a working nVidia driver.
2019-01-11 11:36:34 +01:00
Vladimír Čunát
9ee8cf5177
linuxPackages.nvidia_x11*: unmaintain
I now no longer use an nvidia card commonly, so it would be harder for
me to test at least a bit.  And I'm overcommited anyway.
Hopefully someone else can be found.
2019-01-06 14:59:03 +01:00
Jörg Thalheim
3775f1e53e
linuxPackages_4_18.nvidia_x11_legacy304: mark as broken on 4.18 and newer 2018-12-02 10:46:11 +00:00
Edmund Wu
21bb1fa004
nvidia_x11_beta: reinit at 410.57 2018-10-17 19:30:44 -04:00
danme
44fba6df79 nvidia-x11: Fix vulkan VK_KHR_xcb_surface
Fixes the issue: https://github.com/NixOS/nixpkgs/issues/39149

Problem was that the Nvidia driver did not find the libxcb-glx at runtime.

(cherry picked from commit bda072cafcef4cf5ff99828852ddc8e06ce1fdbf)
2018-09-23 22:19:21 +02:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Edmund Wu
77d49ae9a3
Revert "Merge #45509: nvidia_x11*: mark broken on 4.18"
This reverts commit d5e2f91ec8, reversing
changes made to a850a140fb.
2018-08-23 18:27:10 -04:00
Yardanico
c2e583fc75
Mark nvidia driver as broken on 4.18
Addition to https://github.com/NixOS/nixpkgs/pull/45410
2018-08-23 20:58:09 +03:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Matthew Bauer
c491a99362 treewide: remove callPackage_i686
This has been replaced with pkgsi686Linux.callPackage
2018-07-05 14:04:52 -04:00
dukzcry
9645c867a3 nvidia-x11: pass kernel.modDirVersion 2018-06-24 11:49:48 +03:00
Nikolay Amiantov
4b67702e5b linuxPackages.nvidia_x11_legacy304.settings: force i686
This legacy settings application doesn't support x86_64.
2018-03-27 16:43:54 +03:00
Nikolay Amiantov
00e5b20d17 linuxPackages.nvidia_x11: build only for x86 Linux 2018-03-27 16:43:53 +03:00
Tuomas Tynkkynen
9fe81b5ac2 nvidia-x11: Attempt to fix library-only build
1fb0d3d158 (commitcomment-26554956)
2017-12-30 18:44:45 +02:00
Franz Pletz
1fb0d3d158
Fix some instances of #33166 correctly 2017-12-29 22:35:32 +01:00
Christoph Hrdinka
d1bfa7ee08
nvidia-x11: add libelf to buildInputs
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
2017-12-28 13:28:39 +01:00
Nikolay Amiantov
7b41780a0e linuxPackages.nvidia_x11: move patches to specific versions 2017-05-31 16:52:03 +03:00
Vladimír Čunát
0c4b91505e
nvidia_x11_legacy304: apply patches from Debian
The drivers would build but probably wouldn't work without them.
See #26250.
2017-05-31 10:48:54 +02:00
Vladimír Čunát
165a6548ad
nvidia_x11_legacy340: fix patch URL to fix #25721
Using fixed-commit URLs and fetchpatch is just more robust.
2017-05-12 10:13:26 +02:00
Cray Elliott
11b8cfb506 nvidia_x11_beta: 378.13 -> 381.22
also remove nvidia 4.10 kernel patch as it is no longer needed
2017-05-11 17:53:19 -07:00
Linus Heckemann
89ce83688c nvidia-x11: fix linux 4.10 patch URL 2017-05-11 17:29:57 -07:00
Linus Heckemann
995d41c091 nvidia stable: 375.39 -> 375.66 2017-05-11 17:29:57 -07:00
zraexy
563fa2c034 nvidia-x11: switch download urls to https 2017-04-29 13:19:04 -08:00
John Ericson
37e5e71fdf Merge pull request #24974 from Ericson2314/mapNullable
Introduce `mapNullable` into lib and use it in a few places
2017-04-17 17:12:14 -04:00
John Ericson
85aa5005af Introduce mapNullable into lib and use it in a few places
Also simply some configure flag logic my grep also alerted me too.
2017-04-17 17:04:04 -04:00
Victor Calvert
71d8ce6f4b nvidia: 340.101 -> 340.102 (#24694) 2017-04-16 22:08:20 +02:00
Vladimír Čunát
9ee2143912
treewide: remove unused buildEnv parameters 2017-04-16 10:29:49 +02:00
Kosyrev Serge
d18f55269c nvidia-x11: don't patch things if libsOnly requested 2017-03-19 05:29:33 +03:00
Cray Elliott
8799254eac nvidia_x11_beta: add patch to support Linux 4.10.x
thanks to bendlas for the review for pointing out a way to grab the patch remotely!
2017-03-13 00:00:26 -07:00
Nikolay Amiantov
22750b36fd nvidia: support application profiles
Closes #22666.
2017-02-19 19:46:01 +03:00
Nikolay Amiantov
2fd2fcf54d linuxPackages.nvidia_x11: refactor, build more from source
* Use libglvnd;
* Compile nvidia-settings, nvidia-persistenced from source;
* Generalize builder.
2017-02-08 16:57:46 +03:00