Skip to content

Commit

Permalink
Add Nix flakes to the docs (#155)
Browse files Browse the repository at this point in the history
* Add Nix flakes to the docs

* revert changes to package.json
  • Loading branch information
shekohex authored Jan 2, 2024
1 parent 80995c8 commit 8aa9c78
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake
# vi: ft=sh
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ yarn-error.log
out/*
out
.dccache
*.code-workspace
*.code-workspace
.direnv
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
description = "Webb docs development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
{
devShells.default = pkgs.mkShell {
name = "docs";
nativeBuildInputs = [ ];
buildInputs = [
# Nodejs
pkgs.nodePackages.typescript-language-server
pkgs.nodejs_18
pkgs.nodePackages.yarn
];
packages = [ ];
};
});
}

0 comments on commit 8aa9c78

Please sign in to comment.