Commit Graph

23 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
R. Ryantm
28a99fc3f3 sslh: 2.1.1 -> 2.1.2 2024-05-17 02:53:26 +00:00
R. Ryantm
3f1c8b515b sslh: 2.1.0 -> 2.1.1 2024-03-25 13:41:30 +00:00
R. Ryantm
104723860c sslh: 2.0.1 -> 2.1.0 2024-03-14 00:48:17 +00:00
Zhong Jianxin
3c9153ebc0 sslh: support darwin 2024-01-04 19:10:44 +08:00
R. Ryantm
560e41562c sslh: 2.0.0 -> 2.0.1 2023-11-14 04:06:10 +00:00
rnhmjoj
7ecac99da7
sslh: 1.22c -> 2.0.0 2023-10-29 18:13:37 +01:00
rnhmjoj
edb4422d73
sslh: install sslh-select binary 2023-10-29 11:56:15 +01:00
Nikolay Korotkiy
88ae01f679
sslh: 1.21c → 1.22c 2021-09-20 10:15:33 +03: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
R. RyanTM
15e64e1b64 sslh: 1.21 -> 1.21c 2020-08-31 05:40:31 +00:00
R. RyanTM
9cc53fd9e2 sslh: 1.20 -> 1.21 2020-07-15 02:31:01 +00:00
Symphorien Gibol
4593482d4e nixos: add test for sslh 2020-06-20 13:24:19 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01: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
Franz Pletz
20af37e300
sslh: 1.19c -> 1.20 2018-11-22 14:36:27 +01:00
Silvan Mosberger
57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Franz Pletz
ee6394bbba
sslh: 1.19 -> 1.19c 2018-03-05 15:55:39 +01:00
Franz Pletz
ae939c29cc
sslh: 1.18 -> 1.19 2018-01-28 18:52:21 +01:00
Franz Pletz
6b633b15e9 sslh: 1.17 -> 1.18 2016-05-13 17:27:58 +02:00
koral
17a76ac0bf sslh: 1.16 -> 1.17 2015-04-11 09:58:19 +00:00
koral
cb153cfca3 sslh: added libwrap support + improved nixos module. 2015-02-12 13:21:36 +01:00
koral
1439e72147 New sslh module. 2015-02-05 13:30:39 +01:00