Commit Graph

5 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
jurraca
29c6f3420b
nostr-rs-relay: 0.8.13 -> 0.8.13-unstable-2024-08-14 (#339079) 2024-09-03 09:08:36 +02:00
R. Ryantm
eacc407e1f nostr-rs-relay: 0.8.12 -> 0.8.13 2023-12-19 09:23:56 +00:00
R. Ryantm
2074fa8fd2 nostr-rs-relay: 0.8.9 -> 0.8.12 2023-09-05 18:09:08 +00:00
Julien Urraca
ab7fe9cbd5
nostr-rs-relay: init at 0.8.9
Add to all-packages.nix and add SystemConfiguration

add to all-packages, remove unused clauses

remove redundant entry in all-packages

add meta section, format

fix meta

use CargoSha instead of explicit cargo.lock path

bump to 0.8.9; add changelog, format

move from misc to servers folder

add line before builder expr

remove comma
2023-05-08 01:14:09 +02:00