Initial Commit
This commit is contained in:
commit
0534f88f70
14 changed files with 5590 additions and 0 deletions
41
flake.nix
Normal file
41
flake.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
description = "Development shell for Wry docs";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.corepack
|
||||
pkgs.nodejs_24
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export COREPACK_HOME="$PWD/.cache/corepack"
|
||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
||||
|
||||
mkdir -p "$COREPACK_HOME" "$PWD/.cache/corepack-bin"
|
||||
corepack enable --install-directory "$PWD/.cache/corepack-bin" >/dev/null
|
||||
corepack install >/dev/null
|
||||
|
||||
export PATH="$PWD/.cache/corepack-bin:$PATH"
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue