Change:
try to access the following dead link while building add following line to services.xserver.videoDrivers = [ "nvidia" ]; System: NixOS: Nix version: Nixpkgs version: Sandboxing enabled: building path(s) ‘/nix/store/r580h44jw2vlxf8yhbailq59pdqa09rd-nvidia’ trying % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 error: cannot download nvidia from any mirror
Kinda fixed, but it's not. I have the same issue as before on
The commit you specified is before the fix was , please update to the latest master
, : How can I use the latest? Building with doesn't solved the problem. [root nix-channel --list nixos [root nixos-rebuild build --upgrade downloading Nix expressions from ‘’... downloading ‘’... [7487/9485 KiB, 1475.6 KiB/s] unpacking channels... building Nix... building the system configuration... these derivations will be built: /nix/store/yvsly9idn2zhs99m4v80rmpknik42gcm- /nix/store/8c19p635f80b5jxvz1nb2xjf7x4s74q8-nvidia-x11-375.39- /nix/store/ypfkz02258cwa81kg9ldp1d5lm5rrvh0- /nix/store/b6nxvh1bvgy9si6v1p1imihzr7m9zjqn-xserver- /nix/store/1msl2r65vkld9dkip0rsfl2ajd0yp41a- /nix/store/8wj9hq5r3pdldlk5rkp5j6h1qfl26pwa-nvidia-persistenced- /nix/store/pk3yc9grcn2b1yns61q10l58fyk6dwk9-nvidia-settings- /nix/store/6jb6vvrwdp667j2k7jri2m2ifccwvwid-system- /nix/store/610irpmgz7xwq7cax713g6yjhm2kxc1p-dbus-1.drv /nix/store/1xngplvw8a67bi2z65n4jbpkzc1hndcn-unit- /nix/store/39b1j35pcbz0yw8b58ngwmb59w1nr7y0-unit-display- /nix/store/fy8yb77kivs0bncfcr72fg87960dxg8c-unit- /nix/store/z2h41y3ivymppsvpg2z5lqhq2dhxjnj2-unit-systemd-fsck- /nix/store/hnn1mw8hc98v6gfc3zl4kwwbizb878mj-system- /nix/store/kxk4a45fwd125lzggw2iskzdil6ggm5d-user- /nix/store/5qwl4kn6wdrq3g1bbsbfsjn7p4vs80xh- /nix/store/ywn9wnfspswkq0ngi48lxm61y2f0fn6a-nvidia- /nix/store/hnplrz2zhjf9wv1akq52lqildiwzc6fk-opengl- /nix/store/kn0vbxm69wxx67k9312gz04i6kj6ac5c-kernel- /nix/store/mjzpkhqayy3cry4bnjx5kdsm71adhqh8-kernel-modules- /nix/store/ja7k2kwb58dj5idyqvx6aaspq1p5jl08-stage-1- /nix/store/niqf82r1zpds82mdrns2d9pai7clgpd1- /nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth- building path(s) ‘/nix/store/r580h44jw2vlxf8yhbailq59pdqa09rd-nvidia’ trying % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 curl: (22) The requested URL returned error: 404 error: cannot download nvidia from any mirror builder for ‘/nix/store/yvsly9idn2zhs99m4v80rmpknik42gcm-’ failed with exit code 1 cannot build derivation ‘/nix/store/8c19p635f80b5jxvz1nb2xjf7x4s74q8-nvidia-x11-375.39-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/kn0vbxm69wxx67k9312gz04i6kj6ac5c-kernel-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/ywn9wnfspswkq0ngi48lxm61y2f0fn6a-nvidia-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/8wj9hq5r3pdldlk5rkp5j6h1qfl26pwa-nvidia-persistenced-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/pk3yc9grcn2b1yns61q10l58fyk6dwk9-nvidia-settings-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/39b1j35pcbz0yw8b58ngwmb59w1nr7y0-unit-display-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/ypfkz02258cwa81kg9ldp1d5lm5rrvh0-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/mjzpkhqayy3cry4bnjx5kdsm71adhqh8-kernel-modules-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/hnplrz2zhjf9wv1akq52lqildiwzc6fk-opengl-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/6jb6vvrwdp667j2k7jri2m2ifccwvwid-system-’: 3 dependencies couldn't be built cannot build derivation ‘/nix/store/b6nxvh1bvgy9si6v1p1imihzr7m9zjqn-xserver-’: 2 dependencies couldn't be built cannot build derivation ‘/nix/store/610irpmgz7xwq7cax713g6yjhm2kxc1p-dbus-1.drv’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/1msl2r65vkld9dkip0rsfl2ajd0yp41a-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/ja7k2kwb58dj5idyqvx6aaspq1p5jl08-stage-1-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/fy8yb77kivs0bncfcr72fg87960dxg8c-unit-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/z2h41y3ivymppsvpg2z5lqhq2dhxjnj2-unit-systemd-fsck-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/niqf82r1zpds82mdrns2d9pai7clgpd1-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/1xngplvw8a67bi2z65n4jbpkzc1hndcn-unit-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/hnn1mw8hc98v6gfc3zl4kwwbizb878mj-system-’: 4 dependencies couldn't be built cannot build derivation ‘/nix/store/kxk4a45fwd125lzggw2iskzdil6ggm5d-user-’: 1 dependencies couldn't be built cannot build derivation ‘/nix/store/5qwl4kn6wdrq3g1bbsbfsjn7p4vs80xh-’: 5 dependencies couldn't be built cannot build derivation ‘/nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth-’: 5 dependencies couldn't be built error: build of ‘/nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth-’ failed
that's a version before the fixes were applied. You can read about how channels work on
I think this should be now OK, including the legacy_340 driver and release-17.03.
So how do you get the version after the fixes? It's still not fixed on nixos and the link you sent doesn't explain how to get a newer commit than that builds.
get the nixpkgs tree you want, e.g. via , and then add to . That way you can control exactly which version you build.
documentation on option is missing, you might want to fix that too.
I suppose there might be a list of options that's passed-through to , instead of documenting everything multiple times. I don't know.
and have it $ nix-build --help | grep "-I " [-k] [--keep-failed] [-K] [--fallback] [--readonly-mode] [--log-type type] [--show-trace] [-I path] [--option name value] -I path Paths through -I take precedence over NIXPATH. The search path can be extended using the -I option, which takes precedence over NIXPATH. $ nix-env --help | grep "-I " [--keep-failed] [-K] [--fallback] [--readonly-mode] [--log-type type] [--show-trace] [-I path] [--option name value] -I path Paths through -I take precedence over NIXPATH. The search path can be extended using the -I option, which takes precedence over NIXPATH. $ nixos-rebuild --help | grep "-I " $ nixos-rebuild switch -p test -I nixos-

Discussion:
<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.15.2"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.15/${name}.tar.xz"; sha256 = "0g71zq6dpqrw2f40wfzdf18fdw41ymr17laqniy2kr622hkxdi8w"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

<ins> {stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { version = "0.16.1"; name = "vala-${version}"; src = fetchurl { url = "mirror://gnome/sources/vala/0.16/${name}.tar.xz"; sha256 = "1n708n9ixyy9qrzyv1wf4ybvcclx43ib9ki028wwpvkz6kv8zqlb"; }; buildNativeInputs = [ yacc flex pkgconfig xz ]; buildInputs = [ glib ]; meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; }; } </ins>

{stdenv, fetchurl, yacc, flex, pkgconfig, glib, xz}: stdenv.mkDerivation rec { <del> name = "vala-0.14.2"; </del> <ins> version = "0.17.2"; name = "vala-${version}"; </ins> src = fetchurl { <del> url = mirror://gnome/sources/vala/0.14/vala-0.14.2.tar.xz; sha256 = "1l5kllw9vpwv24lzv9fp64l3sad46wpxgvsgryrwlrjg91w6jzl0"; </del> <ins> url = "mirror://gnome/sources/vala/0.17/${name}.tar.xz"; sha256 = "09i2s0dwmrk147ind2dx7nq845g12fp6fsjqrphhrr0dbi0zzgh3"; </ins> }; buildNativeInputs = [ yacc flex pkgconfig xz ];

meta = { description = "Compiler for the GObject type system"; homepage = "http://live.gnome.org/Vala"; <ins> license = "free-copyleft"; platforms = stdenv.lib.platforms.all; maintainers = [ stdenv.lib.maintainers.antono ]; </ins> }; }

urweb = callPackage ../development/compilers/urweb { }; <del> vala = callPackage ../development/compilers/vala { }; </del> <ins> vala = vala17; vala15 = callPackage ../development/compilers/vala/15.2.nix { }; vala16 = callPackage ../development/compilers/vala/16.1.nix { }; vala17 = callPackage ../development/compilers/vala/default.nix { }; </ins> visualcpp = callPackage ../development/compilers/visual-c++ { };