2022-08-30 00:41:29 +08:00
|
|
|
{
|
|
|
|
description = "code-server";
|
|
|
|
|
2024-11-02 04:32:25 +08:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
2022-08-30 00:41:29 +08:00
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let pkgs = nixpkgs.legacyPackages.${system};
|
2024-06-07 07:02:13 +08:00
|
|
|
nodejs = pkgs.nodejs_20;
|
2022-08-30 00:41:29 +08:00
|
|
|
in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2024-10-18 12:31:28 +08:00
|
|
|
nodejs
|
|
|
|
python3
|
|
|
|
pkg-config
|
|
|
|
git
|
|
|
|
rsync
|
|
|
|
jq
|
|
|
|
moreutils
|
|
|
|
quilt
|
|
|
|
bats
|
|
|
|
openssl
|
2022-08-30 00:41:29 +08:00
|
|
|
];
|
2023-09-21 07:33:28 +08:00
|
|
|
buildInputs = with pkgs; (lib.optionals (!stdenv.isDarwin) [ libsecret libkrb5 ]
|
2022-08-30 00:41:29 +08:00
|
|
|
++ (with xorg; [ libX11 libxkbfile ])
|
2023-05-16 07:44:03 +08:00
|
|
|
++ lib.optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
2022-11-08 02:06:51 +08:00
|
|
|
AppKit Cocoa CoreServices Security xcbuild
|
|
|
|
]));
|
2022-08-30 00:41:29 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|