Commit Graph

22 Commits

Author SHA1 Message Date
Alyssa Ross
6b80d2f004
polaris: useFetchCargoVendor
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

We've checked that fetchCargoVendor produces the same hash on
Darwin (with case-insensitive filesystem) and Linux.
2025-01-28 13:58:06 +01:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Peder Bergebakken Sundt
6bac871832 polaris: 0.14.2 -> 0.14.3
diff: https://github.com/agersant/polaris/compare/0.14.2...0.14.3
release: https://github.com/agersant/polaris/releases/tag/0.14.3
2024-10-02 01:17:01 +02: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
Peder Bergebakken Sundt
f0d12d6916 polaris: fetch cargo.lock update 2024-08-14 16:06:00 +02:00
Peder Bergebakken Sundt
491e60c69e polaris: 0.14.1 -> 0.14.2
Also devendors the Cargo.lock
2024-03-14 17:43:29 +01:00
R. Ryantm
2d3fdf6f48 polaris: 0.14.0 -> 0.14.1 2024-02-04 00:05:41 +00:00
Peder Bergebakken Sundt
528e1abdab polaris-web: 68 -> 69
Diff: https://github.com/agersant/polaris-web/compare/build-68...build-69
2024-01-23 02:36:08 +01:00
h7x4
12315f53ff treewide: add mainProgram 2023-11-24 21:01:03 +01:00
Peder Bergebakken Sundt
856bda4f94 polaris: passthru nixos test 2023-09-30 17:29:10 +02:00
Peder Bergebakken Sundt
d90059651d polaris-web: 67 -> 68
Diff: https://github.com/agersant/polaris-web/compare/build-67...build-number-68
2023-09-30 17:20:30 +02:00
Peder Bergebakken Sundt
97588fcdb2 polaris: 0.13.5 -> 0.14.0
I also swapped the updateScript, as the old one didn't touch the cargo hash.
2023-08-01 13:07:34 +08:00
Robert Schütz
c5f924dcc2 polaris-web: 55 -> 67
Diff: https://github.com/agersant/polaris-web/compare/build-55...build-67
2023-07-26 22:55:51 -07:00
Robert Schütz
025b63b129 polaris-web: use buildNpmPackage 2023-07-26 22:55:50 -07:00
figsoda
58e4e74986 pkgs/servers: replace "${version}" with version 2023-07-02 14:51:24 -04:00
Sandro Jäckel
aad577bd30 nodejs*: normalise names to better fit other packages
Versioned package attributes are usually named like $pname_$version
eg: nodejs-14_x -> nodejs_14
2023-04-25 11:28:17 +02:00
R. Ryantm
807dd234b5 polaris-web: build-54 -> build-55 2022-11-13 17:47:53 +08:00
Peder Bergebakken Sundt
6fbc9b6f93 polaris-web: fix breakage due to nodejs v16->v18 upgrade
This really should be fixed upstream, but this will
have to suffice in the meanwhile.
2022-09-24 21:15:34 +02:00
Sandro
2e1e0dc377
Merge pull request #180823 from r-ryantm/auto-update/polaris-web 2022-07-29 16:50:13 +02:00
Peder Bergebakken Sundt
02906974ec polaris: fix Os error 24: 'Too many open files' in checkPhase
I set the ulimit to 4096, the default used by Darwin since #173657
2022-07-13 01:57:06 +02:00
R. Ryantm
cfe56470cb polaris-web: build-50 -> build-54 2022-07-09 08:30:17 +00:00
Peder Bergebakken Sundt
50ba995a1c polaris: init at 0.13.5
Polaris is a self-hosted music streaming server, with a
web and android frontend. The web frontend is included.
https://github.com/agersant/polaris

Polaris-web uses an odd versioning schema: 'build-X'. We reuse
the upstream tags. Polaris CI releases automatically bundle the
latest available version of polaris-web, however 'polaris' has seen
no release since april 2021, while polaris-web has had 5 version
bumps since. Currently we package the version of polaris-web
bundled with polaris on github. Once the newer versions are tested
we might upgrade.
2022-07-08 12:27:48 -04:00