2022-08-29 19:41:29 +03:00
|
|
|
{
|
|
|
|
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; [
|
2022-11-07 21:06:51 +03:00
|
|
|
nodejs yarn' python pkg-config git rsync jq moreutils quilt bats
|
2022-08-29 19:41:29 +03:00
|
|
|
];
|
|
|
|
buildInputs = with pkgs; (lib.optionals (!stdenv.isDarwin) [ libsecret ]
|
|
|
|
++ (with xorg; [ libX11 libxkbfile ])
|
2022-11-07 21:06:51 +03:00
|
|
|
++ lib.optionals stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
|
|
|
|
AppKit Cocoa CoreServices Security xcbuild
|
|
|
|
]));
|
2022-08-29 19:41:29 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|