Commit Graph

36 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
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