Commit Graph

9 Commits

Author SHA1 Message Date
Jörg Thalheim
513229662d nix-web: unpin unsupported nix version 2024-11-30 10:54:40 +01:00
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
Sigmanificient
61fe0c0416 pkgs/by-name: remove unused arguments 2024-07-26 10:11:07 +02:00
embr
4a6a82fbad nix-web: Depend on SystemConfiguration.framework on Darwin 2024-06-21 22:11:15 +02:00
embr
60371b06b8 nix-web: 0.3.0 -> 0.4.2 2024-06-21 18:27:07 +02:00
embr
78442dd34b nix-web: 0.2.0 -> 0.3.0
This is a hotfix to be compatible with Nix 2.18, as 2.17 is due to be removed:
https://github.com/NixOS/nixpkgs/pull/306575

We're pinning 2.18 rather than 2.22 as it's what current stable NixOS uses.

This introduced the very funny problem that my unit tests, for perhaps
understandable reasons, have store paths in them. It turns out this makes
the fetcher very unhappy.

I'll fix this by the next release - for now, have some `nuke-refs` bodgery.
2024-04-26 21:44:52 +02:00
Finn Behrens
7b971ce7d1 nix-web: Build on platforms.unix, depend on OpenSSL if not on Darwin
This matches the `platform` setting for nix itself, as much as I don't
have a good way to test this on anything but Linux right now.

Co-Authored-By: Finn Behrens <me@kloenk.de>
2023-12-15 19:08:43 +01:00
embr
237c0484fe nix-web: 0.1.0 -> 0.2.0 2023-12-15 19:08:43 +01:00
embr
9103463469 nix-web: init at 0.1.0
https://codeberg.org/gorgon/gorgon/releases/tag/nix-web-v0.1.0
2023-11-15 14:41:55 +01:00