mirror of
https://github.com/coder/code-server.git
synced 2024-12-29 20:52:16 +03:00
6d9530aa6b
Additionally: - Update Node to 20.11.1 - Update documentation - Disable extension signature verification This works around an issue where the Open VSX is not returning the expected zip. Verification is skipped later anyway because @vscode/vsce-sign is missing in the OSS version.
26 lines
939 B
Nix
26 lines
939 B
Nix
{
|
|
description = "code-server";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem
|
|
(system:
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
|
nodejs = pkgs.nodejs_20;
|
|
yarn' = pkgs.yarn.override { inherit nodejs; };
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs yarn' python3 pkg-config git rsync jq moreutils quilt bats openssl
|
|
];
|
|
buildInputs = with pkgs; (lib.optionals (!stdenv.isDarwin) [ libsecret libkrb5 ]
|
|
++ (with xorg; [ libX11 libxkbfile ])
|
|
++ lib.optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
|
AppKit Cocoa CoreServices Security xcbuild
|
|
]));
|
|
};
|
|
}
|
|
);
|
|
}
|