mirror of
https://github.com/coder/code-server.git
synced 2024-11-26 12:34:02 +03:00
77c3cd3aa1
* Improve getting started Coder CTA This wasn't very standout-ish before, and I think it's wise for us to experiment with directing users to Coder. * Update nix flake * Update diff * Add advert to code-server install * Fix patch to reset columns if getting started is disabled * Update text for advert
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' python 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
|
|
]));
|
|
};
|
|
}
|
|
);
|
|
}
|