Commit Graph

41 Commits

Author SHA1 Message Date
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02: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
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
Robert Schütz
cb210c2cac code-server: 4.89.1 -> 4.91.1
Diff: https://github.com/coder/code-server/compare/v4.89.1...v4.91.1

Changelog: https://github.com/coder/code-server/blob/v4.91.1/CHANGELOG.md
2024-07-23 03:36:03 -07:00
Asher
644fc7e4f6 code-server: 4.23.1 -> 4.89.1 2024-05-17 12:10:45 -08:00
Asher
5f830f5fac code-server: 4.19.1 -> 4.23.1
In addition to the version bump, I did some refactoring because there
were a few issues:

1. Downloading NPM dependencies during install phase does not work.
   Instead, copy them over from the build phase.
2. Native modules in lib/vscode were not being installed/built at all.
3. Kerberos module will not build (a new issue that appeared as a
   consequence of fixing the previous issue).  Remove it for now.
4. Increase max-old-space-size from the default (I was running out of
   memory).

There are still some issues to look over but these changes are at least
an improvement over the status quo.

Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2024-04-15 18:56:13 -08:00
Paul Meyer
d024c5ca0c code-server: remove unused playwright patch
Reference was removed in https://github.com/NixOS/nixpkgs/pull/198791
2024-01-14 14:54:54 +01:00
Pol Dellaiera
22a0416522 code-server: 4.16.1 -> 4.19.1 2023-12-19 16:02:36 +01:00
Pol Dellaiera
1a57f50d95 Revert "code-server: drop"
This reverts commit 72911a99d3.
2023-12-19 15:40:57 +01:00
Raito Bezarius
72911a99d3 code-server: drop
Depends on Node.js 16 and cannot be trivially upgraded to Node.js 18.
2023-11-17 20:26:55 +01:00
Robert Hensing
f8f9f13d57 Merge pull request #246386 from hercules-ci/lib-getExe-dont-make-name-assumption
lib.getExe: Do not make assumptions about the main program
2023-08-02 20:05:52 +02:00
Pol Dellaiera
198d6eedbc code-server: 4.16.0 -> 4.16.1 2023-08-01 19:09:44 +02:00
Robert Hensing
4c1d3cee60 treewide: Add meta.mainProgram
This should fix most warnings getExe in based on grepping `nixos/`.
2023-07-31 21:54:43 +02:00
Pol Dellaiera
9520bdd088 code-server: 4.15.0 -> 4.16.0 2023-07-31 16:38:55 +02:00
Pol Dellaiera
8ae7f49b34 code-server: 4.14.1 -> 4.15.0 2023-07-22 23:46:55 +02:00
Pol Dellaiera
a835a56b54 code-server: restore previous patch (#240194)
Also add a note about the `commit` value and how to get it.
2023-06-27 23:04:28 +02:00
Pol Dellaiera
2ef15a4ef3 code-server: 4.14.0 -> 4.14.1 (#240001) 2023-06-27 20:45:38 +02:00
Peder Bergebakken Sundt
53077eb1be code-server: add vscode-with-extensions compatibility 2023-06-17 23:14:50 +02:00
Pol Dellaiera
7c06e70c29 code-server: 4.13.0 -> 4.14.0 2023-06-16 23:53:57 +02:00
Asher
5a27d7f4f2 maintainers: add code-asher 2023-06-15 13:32:15 -08:00
Asher
b7d596c140 code-server: 4.12.0 -> 4.13.0
I replaced the commit with the actual commit instead of "none" and fixed
the other replacement (`$commit` did not exist).

There was at least one postinstall script in `extensions` that was not
being ran so I modified the `find` command to account for lock files in
that directory in addition to `node_modules`.

Lastly, inject the version into the package.json otherwise it uses the
placeholder version 0.0.0.
2023-06-15 13:32:14 -08:00
Pol Dellaiera
d1556ade02 code-server: use finalAttrs pattern
- refactor code-style
- add missing phases
- remove cloud-agent
2023-06-13 21:47:35 +02:00
Pol Dellaiera
371b4c3eb7 nixos/code-server: init tests 2023-05-26 09:51:33 +02:00
Thomas Gerbet
9a7178f766 code-server: 4.8.3 -> 4.12.0
Fixes CVE-2023-26114.

Changelogs:
https://github.com/coder/code-server/blob/v4.12.0/CHANGELOG.md
2023-04-26 20:06:38 +02: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
Mario Rodas
8696a5c960 code-server: fix build 2023-01-28 04:20:00 +00:00
henkery
35b6a7722d code-server: 4.0.1 -> 4.8.3 2022-11-16 12:25:43 +01:00
Derek Guenther
72501ea608 code-server: 3.12.0 -> 4.0.1 2022-01-09 17:27:42 -08:00
Derek Guenther
5e1324e48a code-server: 3.9.0 -> 3.12.0 2021-11-01 05:13:39 +00:00
Felix Buehler
462be6acbe code-server: remove phases 2021-07-22 19:28:36 +02:00
Cheng Shao
6edf7503f3 code-server: 3.8.0 -> 3.9.0 (#118317)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-07-10 02:47:39 +02:00
Derek Guenther
c841fa4908 code-server: 3.6.0 -> 3.8.0 2021-01-27 09:15:00 -08:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Ben Siraphob
872973d7d1 pkgs/servers: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Derek Guenther
680df517d7 code-server: 3.4.1 -> 3.6.0 2020-12-29 18:51:44 +00:00
Ben Siraphob
683a87dbeb treewide: remove periods from end of package descriptions 2020-10-17 08:22:31 -07:00
Jaka Hudoklin
9e3dd22795 code-server: init at 3.4.1 2020-06-22 10:12:12 +02:00