mirror of
https://github.com/coder/code-server.git
synced 2024-12-27 19:56:57 +03:00
43ef50b404
* Update to 1.78.1 No changes needed in the patches other than moving some lines around and updating the CSP hash as usual. The flake had to be updated as it was using Node 16.16 and 16.17 is required at minimum now. Also python seems to install python2 which is marked as deprecated so explicitly install python3. * Update to 1.78.2 Patches applied without any conflicts. * Update commit environment variable This was causing the commit not to be set. It broke display languages since that has a hard dependency on the commit for directory names. Possibly broke other things.
26 lines
925 B
Nix
26 lines
925 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-16_x;
|
|
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
|
|
];
|
|
buildInputs = with pkgs; (lib.optionals (!stdenv.isDarwin) [ libsecret ]
|
|
++ (with xorg; [ libX11 libxkbfile ])
|
|
++ lib.optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
|
AppKit Cocoa CoreServices Security xcbuild
|
|
]));
|
|
};
|
|
}
|
|
);
|
|
}
|