mirror of
https://github.com/coder/code-server.git
synced 2024-12-23 17:51:39 +03:00
494a3e0c2b
* Update Code to 1.95.1 * Update Node to 20.18.0 * Update build.yaml to use Ubuntu 22.04 This is to resolve a gcc error. Might have to address the release step later as well. * Fix --stdin-to-clipboard With the switch to esm, the fs require is failing. fs is already imported, so we can just use it anyway. * Fix mangled exports * Update CSP hashes
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{
|
|
description = "code-server";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
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;
|
|
in {
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs
|
|
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
|
|
]));
|
|
};
|
|
}
|
|
);
|
|
}
|