Commit Graph

25 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
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
R. Ryantm
e21414ed30 innernet: 1.6.0 -> 1.6.1 2024-01-22 18:31:34 +00:00
Fabian Affolter
91e2645ab5
innernet: add changelog to meta 2023-06-24 22:46:19 +02:00
R. Ryantm
a49f40eb67 innernet: 1.5.5 -> 1.6.0 2023-06-23 14:10:35 +00:00
Weijia Wang
86cd1b3f6f innernet: migrate to bindgenHook 2023-05-26 22:37:52 +03:00
R. Ryantm
7034d52ef8 innernet: 1.5.4 -> 1.5.5 2022-09-24 15:03:18 +00:00
Josh Robson Chase
6b9080d336
innernet: only package systemd units for linux 2022-05-23 11:16:50 -04:00
Josh Robson Chase
31c82b62ff
innernet: package systemd units 2022-05-23 11:01:36 -04:00
Artturin
f1c7f19e49 treewide: testVersion -> testers.testVersion 2022-04-22 16:24:27 +03:00
R. Ryantm
7ff0080e8d innernet: 1.5.3 -> 1.5.4 2022-03-17 12:00:25 +00:00
0x4A6F
5be91457ed
innernet: 1.5.2 -> 1.5.3 2022-01-31 22:33:18 +01:00
0x4A6F
eab69fa28d
innernet: 1.5.1 -> 1.5.2 2021-12-06 10:45:04 +01:00
0x4A6F
92c881b6a7 innernet: 1.5.0 -> 1.5.1 2021-11-12 01:30:08 -05:00
0x4A6F
93212d1a23
innernet: 1.4.1 -> 1.5.0 2021-09-17 07:54:38 +02:00
R. RyanTM
2de3507fcd innernet: 1.4.0 -> 1.4.1 2021-08-03 07:37:01 +00:00
R. RyanTM
dc6937ca17 innernet: 1.3.1 -> 1.4.0 2021-07-12 06:17:37 +00:00
0x4A6F
d198902b4d
innernet: add shell completions 2021-06-01 20:38:30 +02:00
R. RyanTM
f9c85326ca innernet: 1.3.0 -> 1.3.1 2021-06-01 12:40:28 -04:00
R. RyanTM
0963e0baca innernet: 1.2.0 -> 1.3.0 2021-05-22 05:40:30 +00:00
Andrew Childs
7869d16545 llvmPackages: Multuple outputs for everythting
Also begin to start work on cross compilation, though that will have to
be finished later.

The patches are based on the first version of
https://reviews.llvm.org/D99484. It's very annoying to do the
back-porting but the review has uncovered nothing super major so I'm
fine sticking with what I've got.

Beyond making the outputs work, I also strove to re-sync the packages,
as they have been drifting pointlessly apart for some time.

----

Other misc notes, highly incomplete

- lvm-config-native and llvm-config are put in `dev` because they are
  tools just for build time.

- Clang no longer has an lld dep. That was introduced in
  db29857eb3, but if clang needs help
  finding lld when it is used we should just pass it flags / put in the
  resource dir. Providing it at build time increases critical path
  length for no good reason.

----

A note on `nativeCC`:

`stdenv` takes tools from the previous stage, so:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.stdenv.cc`: `(?0, ?1, x)`

while:

1. `pkgsBuildBuild`: `(?1, x, x)`
2. `pkgsBuildBuild.targetPackages`: `(x, x, ?2)`
3. `pkgsBuildBuild.targetPackages.stdenv.cc`: `(?1, x, x)`
2021-04-30 05:41:00 +00:00
Andrey Kuznetsov
0b02fa01a9
innernet: fix build on darwin 2021-04-29 23:56:38 +03:00
0x4A6F
1a6899f701
innernet:
- add simple packaging test
- add manpages
- remove unused linuxHeaders input
2021-04-26 20:17:57 +02:00
R. RyanTM
c62b3e0d6a innernet: 1.1.0 -> 1.2.0 2021-04-26 01:46:24 +00:00
tomberek
cd251bfd11
innernet: init at 1.0.0 (#118007)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-04-19 04:33:03 +02:00