Commit Graph

12 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
Florian Warzecha
531f6e9e63
maintainers: remove liketechnik
My contributions were insignificant in the grand scheme of things anyway,
but this was the last of many steps too far:
https://discourse.nixos.org/t/nca-jonringer-joint-announcement/48231
https://web.archive.org/web/20240701165505/https://discourse.nixos.org/t/nca-jonringer-joint-announcement/48231
2024-07-02 18:42:56 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Florian Warzecha
5743177782
vpn-slice: switch maintainer to liketechnik 2023-10-18 22:39:47 +02:00
Florian Warzecha
5b83108257
vpn-slice: replace propagatedInputs with substituteInPlace
Does not rely on python builder specific magic to provide
the runtime binaries this way.
2023-10-17 19:57:45 +02:00
Florian Warzecha
46e4e8ad83
vpn-slice: fix propagated dependencies on darwin
vpn-slice has different requirements for externally available
commands depending on the os:

> Supported OSes:
>   - Linux kernel 3.x+ with iproute2 and iptables utilities (used for all routing setup)
>   - macOS 10.x with BSD route
2023-10-16 17:11:22 +02:00
Florian Warzecha
d14eb44383
vpn-slice: add iproute2,iptables to propagatedBuildInputs
Those executables are needed for correct operation of vpn-slice
during runtime. Otherwise the error message "cannot execute
/sbin/ip" / "cannot execute /sbin/iptables" occurrs.
2023-10-15 15:22:52 +02:00
figsoda
a211d94291 treewide: remove attrPath from nix-update-script calls
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
2022-12-26 12:39:21 -05:00
R. Ryantm
12469b7ed0 vpn-slice: 0.16 -> 0.16.1 2021-12-26 18:25:18 +00:00
R. Ryantm
38a9dfe5c3 vpn-slice: 0.15 -> 0.16 2021-12-15 02:48:33 +00:00
Robert K. Bell
3ff3ec989c
vpn-slice: 0.14 -> 0.15
And add an update-script, for automatic updates.
2021-10-11 18:37:42 +11:00
Jack Baldry
62b812fbc0
vpn-slice: init at 0.14
Python tool for convenient configuration of a split tunnel VPN

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2020-08-24 10:10:02 +01:00