Commit Graph

101 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Simon Hauser
1906fbbe6c
openvpn-auth-ldap: Fix CVE-2024-28820 (#337962) 2024-08-29 12:09:15 -04:00
Robert Scott
393a1ff35c
Merge pull request #328319 from r-ryantm/auto-update/openvpn
openvpn: 2.6.11 -> 2.6.12
2024-08-19 21:38:49 +01:00
Anderson Torres
c9deae12d7 treewide: remove viric from meta.maintainers [no orphans]
Since theey is not active from at least six years.
2024-07-28 10:47:12 -03:00
R. Ryantm
452a075730 openvpn: 2.6.11 -> 2.6.12 2024-07-19 01:39:42 +00:00
R. Ryantm
1099679f06 openvpn: 2.6.10 -> 2.6.11 2024-06-21 04:35:34 +00:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Jussi Kuokkanen
ce3f586775 pkgs/tools: remove licenses.gpl2 2024-05-02 21:06:26 +02:00
R. Ryantm
7c6425a21a openvpn: 2.6.9 -> 2.6.10 2024-03-21 00:42:09 +00:00
Peder Bergebakken Sundt
755d153a7a
Merge pull request #287915 from h7x4/treewide-add-main-program-4
treewide: add `mainProgram`
2024-02-15 01:45:40 +01:00
R. Ryantm
6fca7fea2a openvpn: 2.6.8 -> 2.6.9 2024-02-13 08:49:44 +01:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
Yongun Seong
df2f1a8510 openvpn: cleanup unnecessary generic function 2024-01-29 11:06:17 +01:00
D3vil0p3r
204c3d6d38 openvpn: adding missing mainProgram value 2024-01-18 11:20:21 +01:00
Yongun Seong
52bdb3481c
openvpn: fix tests and add to passthru.tests 2023-12-21 15:34:08 +09:00
Yongun Seong
3deee92686
openvpn: 2.5.8 -> 2.6.8 2023-12-20 18:23:32 +09:00
ajs124
56cb90a173 openvpn-auth-ldap: fix build 2023-12-11 16:51:05 +01:00
figsoda
251d2cbfc2 pkgs/tools/networking: remove dead code 2023-07-25 11:36:57 -04:00
ajs124
e368c70817 openvpn_24: remove
EOL in March (https://community.openvpn.net/openvpn/wiki/SupportedVersions)
2023-01-23 00:18:41 +01:00
Adam Joseph
42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
Many packages have some kind of flag indicating whether or not to build with
systemd support.  Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`.  Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.

This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.

This provides three benefits:

1. The default values are set correctly (i.e. including `&& isStatic`)

2. The default values are set consistently

3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
   reported to have experimental systemd support)
2023-01-22 00:27:19 -08:00
Aaron Jheng
2b24d0d98e
openvpn: 2.5.6 -> 2.5.8 2022-11-03 23:52:13 +00:00
ajs124
5cb3e07081 openvpn*: use matching openssl version for each release 2022-08-17 20:16:19 +02:00
Peter Hoeg
7aa2c5cfb4 openvpn: use update-systemd-resolved instead of vendoring it 2022-04-12 22:59:11 +08:00
Peter Hoeg
adbf08f9ec update-systemd-resolved: inject PATH to avoid wrapping 2022-04-12 22:59:11 +08:00
Markus S. Wamser
448d02ec22 openvpn: 2.4.11 -> 2.4.12 (security, CVE-2022-0547)
Release Notes:
https://github.com/OpenVPN/openvpn/blob/release/2.4/Changes.rst#version-2412https://github.com/OpenVPN/openvpn/blob/release/2.5/Changes.rst

Fixes: CVE-2022-0547
2022-03-17 22:47:40 +01:00
Markus S. Wamser
1098fc9221 openvpn: 2.5.5 -> 2.5.6 (security, CVE-2022-0547)
Release Notes:
https://github.com/OpenVPN/openvpn/blob/release/2.5/Changes.rst

Fixes: CVE-2022-0547
2022-03-17 15:07:23 +01:00
Ben Wolsieffer
75741425ce openvpn: 2.5.2 -> 2.5.5
Also, increase the minimum version that requires iproute2 (for documentation
purposes only, since we are upgrading to a later version). Until 2.5.4, iproute2
was required to set the MAC address on the VPN interface.
2022-01-08 13:01:30 -05:00
Felix Buehler
9480444dae treewide: rename name to pname&version 2021-11-09 22:24:57 +01:00
Robert Schütz
966188ff80 openvpn-auth-ldap: 2.0.3+deb6.1 -> 2.0.4 2021-05-29 14:00:57 -07:00
Thomas Gerbet
e2df9554b0 openvpn_24: 2.4.9 -> 2.4.11
Fixes CVE-2020-15078.
https://community.openvpn.net/openvpn/wiki/CVE-2020-15078
2021-05-23 15:52:46 +02:00
Thomas Gerbet
82f90f892f openvpn: 2.5.0 -> 2.5.2
Fixes CVE-2020-15078.
https://community.openvpn.net/openvpn/wiki/CVE-2020-15078
2021-05-23 15:46:06 +02:00
Sandro Jäckel
9378fdf87e
iproute: deprecate alias 2021-04-04 01:43:46 +02:00
Sandro Jäckel
ec5be00b37
openvpn: remove ? null 2021-03-17 22:55:11 +01:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Ben Siraphob
8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +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
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Peter Hoeg
31cf796be6 openvpn: 2.4.9 -> 2.5.0 2020-11-22 20:36:57 +08:00
Peter Hoeg
1f2368d387 openvpn: update and wrap update-systemd-resolved
The string replacement we were doing was just too brittle, so wrap the
script with a modified PATH instead as it is less likely to break on new
versions.
2020-05-21 20:54:25 +08:00
Martin Milata
f35d50c68c openvpn: 2.4.7 -> 2.4.9
Fixes CVE-2020-11736
2020-04-23 14:25:37 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Edmund Wu
5766bd451a
update-systemd-resolved: init at 1.3.0 2019-10-01 08:43:36 -04:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
lassulus
acc3eec8da openvpn: fix pkcs11 helper 2019-05-20 10:39:24 +02:00
Peter Hoeg
8f81838ab5
Merge pull request #58800 from peterhoeg/f/openvpn
openvpn: support for updating systemd-resolved with DNS servers
2019-04-28 21:54:26 +08:00
Peter Hoeg
36c344ac00 openvpn: support for updating systemd-resolved with DNS servers 2019-04-03 09:35:27 +08:00
R. RyanTM
ddc5666b28 openvpn: 2.4.6 -> 2.4.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/openvpn/versions
2019-03-11 01:00:15 -07:00
Ryan Mulligan
038a0c9a60 treewide: http to https 2018-04-30 21:39:20 -07:00
R. RyanTM
8898063828 openvpn: 2.4.5 -> 2.4.6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/openvpn/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 2.4.6 with grep in /nix/store/5hj70y409c0b01zmx4rddiicgq7jajb2-openvpn-2.4.6
- directory tree listing: https://gist.github.com/ce0bc5e31d7d26ead341febdc7bdc6ee
2018-04-26 01:20:56 -07:00