54 Commits

Author SHA1 Message Date
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
magicquark e8d335969f linuxPackages.rtl8812au: mark broken on kernel versions < 5.10 and > 6.14
- On Hydra, builds for kernel version  5_10, 5_15, 6_1, 6_6 and 6_12
  succeed, but the build for the latest latest kernel version 6_17 is
  failing.

- The upstream provider of the driver only supports kernel versions
  between version 5.10 and 6.14, inclusive. This is partly because a
  driver has been up-streamed into the kernel, so the package is not
  needed for recent drivers.

  [Reference](https://github.com/morrownr/8812au-20210820.)

- Because of this, mark the driver as broken on the relevant kernel
  versions.
2025-11-09 04:17:57 +00:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Kraust e16fee1857 linuxKernel/rtl8812au: update driver source for kernel 6.7+ (#326863) 2024-07-13 23:47:00 +05:30
WilliButz 85a9d840f2 linuxPackages.rtl8812au: 2024-01-19 -> 2024-03-20 2024-05-10 17:22:03 +02:00
Kosyrev Serge 61686ba251 rtl8812au: fix build by bumping to unstable-2024-01-19
The build failure:

/build/source/os_dep/linux/ioctl_cfg80211.c:10473:26: error: initialization of 'int (*)(struct wiphy *, struct net_device *, struct cfg80211_ap_update *)' from incompatible pointer type 'int (*)(struct wiphy *, struct net_device *, struct cfg80211_beacon_data *)' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;]
10473 |         .change_beacon = cfg80211_rtw_change_beacon,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/os_dep/linux/ioctl_cfg80211.c:10473:26: note: (near initialization for 'rtw_cfg80211_ops.change_beacon')
2024-01-24 00:07:51 +04:00
fortuneteller2k d3c568b7bc maintainers: fortuneteller2k -> moni 2023-11-17 18:03:27 +08:00
Joerie de Gram b84613efb9 linuxPackages.rtl8812au: unstable-2023-07-20 -> unstable-2023-07-22 2023-07-31 00:53:29 +02:00
Nick Cao abdc48a123 linuxPackages.rtl8812au: unstable-2023-05-11 -> unstable-2023-07-20
Diff: https://github.com/morrownr/8812au-20210629/compare/765d4e4bd5970f4c1c79e63bbe301667e5e029c9...51338202d21a63202b324afd22bd361141c8c5e5
2023-07-22 10:12:47 +08:00
Alexandre Iooss dd5aaa10ad rtl8812au: unstable-2023-01-17 -> unstable-2023-05-11 2023-05-19 23:33:30 +02:00
github-actions[bot] 41d7ce1517 Merge master into staging-next 2023-02-03 06:01:30 +00:00
superherointj 82c93e2266 linuxPackages.rtl8812au: unstable-2022-08-22 -> unstable-2023-01-17 2023-02-02 17:52:31 -03:00
Artturin 6e3bff617f treewide: remove replacements of '$(shell uname -r)' with '${kernel.modDirVersion}'
after adding deterministic-uname to kernel.moduleBuildDependencies this
is unnecessary
2023-01-22 13:46:12 +02:00
Artturin 7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
fortuneteller2k a457ddf7f0 linuxPackages.rtl8812au: 5.9.3.2.20210427 -> 5.15.6.20210629 2022-08-27 13:05:13 +00:00
Alyssa Ross 5330c0a1af treewide: use isAarch where appropriate 2022-07-30 16:18:27 +00:00
Ryan Burns 2175b157ac treewide: refactor isi686 && isx86_64 -> isx86 2021-11-20 17:50:41 -08:00
Alyssa Ross 3683cca605 linuxPackages.rtl8812au: mark broken on Linux 5.15
https://github.com/gordboy/rtl8812au-5.9.3.2/issues/27
2021-11-06 11:43:56 -07:00
Alyssa Ross db1f8c596d linuxPackages.rtl8812au: parallel build
So much faster.  Tested at -j48.
2021-08-30 11:35:52 +00:00
fortuneteller2k 8aac6d8daf linuxPackages.rtl8812au: add myself as maintainer, cleanup 2021-05-20 09:06:36 -07:00
Daniel Fullmer 61901ffd0b rtl8812au: remove myself from maintainers 2021-05-08 19:04:48 -07:00
fortune 918cf983fb rtl8812au: remove unsupported kernels
Co-authored-by: Jonathan Ringer <jonringer@users.noreply.github.com>
2021-05-08 18:10:47 -07:00
fortuneteller2k 3360314646 rtl8812au: 5.6.4.2 -> 5.9.3.2 2021-05-08 18:10:47 -07:00
John Ericson 9c213398b3 lib: Clean up how linux and gcc config is specified
Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that
commit for details.

This reverts commit 0bc275e634.
2021-01-23 10:01:28 -05:00
Jonathan Ringer 0bc275e634 Revert "lib: Clean up how linux and gcc config is specified"
This is a stdenv-rebuild, and should not be merged
into master

This reverts commit 8929989614.
2021-01-22 14:07:06 -08:00
John Ericson 8929989614 lib: Clean up how linux and gcc config is specified
The `platform` field is pointless nesting: it's just stuff that happens
to be defined together, and that should be an implementation detail.

This instead makes `linux-kernel` and `gcc` top level fields in platform
configs. They join `rustc` there [all are optional], which was put there
and not in `platform` in anticipation of a change like this.

`linux-kernel.arch` in particular also becomes `linuxArch`, to match the
other `*Arch`es.

The next step after is this to combine the *specific* machines from
`lib.systems.platforms` with `lib.systems.examples`, keeping just the
"multiplatform" ones for defaulting.
2021-01-21 22:44:09 -05:00
Ben Siraphob 16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07: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
Tim Steinbach ce79348fe4 rtl8812au: 5.6.4.2_35491.20200318 -> 5.6.4.2_35491.20200702 2020-10-05 13:06:55 -07:00
Daniel Fullmer 45c0523b77 rtl8812au: 5.2.20.2_28373.20190903 -> 5.6.4.2_35491.20200318 2020-05-01 09:25:36 +02:00
Michael Reilly 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Daniel Fullmer 51950d7a29 rtl8812au: fix cross compiling
Built and tested on:
Raspberry Pi 3, natively compiled on aarch64
Raspberry Pi 1, cross compiled from x86_64 to armv6l
2020-02-10 20:27:28 +01:00
Eelco Dolstra 711cbb9117 rtl8812au, rtl8821au: Prevent runtime dependency on kernel.dev 2019-09-23 19:23:21 +02:00
Daniel Fullmer f12dcceb47 rtl8812au: 5.2.20.2_28373.20180619 -> 5.2.20.2_28373.20190903 2019-09-12 13:07:27 -04:00
Daniel Fullmer 032d0bafce rtl8812au: fix build with Linux >= 5.0 2019-05-16 17:54:06 -04:00
Daniel Fullmer 82c3d05d9e rtl8812au: 5.2.20_25672.20171213 -> 5.2.20.2_28373.20180619 2018-12-14 23:10:43 -05:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Daniel Fullmer 59c43d60ad rtl8812au: 4.3.20 -> 5.2.20_25672.20171213 2018-02-10 21:05:39 -05:00
Orivej Desh 7448d1f060 rtl8812au: fix build with Linux >= 4.14.9 2017-12-31 07:12:54 +00:00
Daniel Fullmer c08ceb1df8 rtl8812au: Fixes for newer linux kernels
This includes the patches from the pull requests #42, #43, and #46
submitted to Grawp/rtl8812au_rtl8821au
2017-08-11 23:47:07 -04:00
Daniel Fullmer afa9031062 rtl8812au: Fix comment typo
The commit 5d693c84d2 cleaned up the
substitute() function in stdenv and caused this line to
fail.
2017-08-11 23:31:12 -04:00
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Joachim Fasting e6c65ecb12 tree-wide: remove uses of features.grsecurity 2017-05-14 15:08:51 +02:00
Yochai Meir e70560ff98 rtl8812au: compiles on linux 4.8 2016-11-03 19:53:37 +02:00
Yochai ca9c21b0ab rtl8812au: 4.2.2-1 -> 4.3.20 2016-09-29 09:29:22 +03:00
Robin Gloster 8071cafe66 linuxPackages.rtl8812au: fix build 2016-08-14 08:59:55 +00:00
Robin Gloster f60c9df0ba Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-03-28 15:16:29 +00:00
Joachim Fasting 2182fd52ad rtl8812au: mark as broken on grsec kernels
All hydra builds against grsec kernels fail; builds against vanilla
kernels work.
2016-03-27 01:39:07 +01:00
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00