Skip to content

Commit

Permalink
chore: replace legacy nix with flake setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gruhn committed Jul 15, 2024
1 parent 41a452c commit 56da209
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 13 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,5 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/node,linux,macos,windows,vue

.direnv
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Don't hesitate to open an issue if you have trouble.
### Setup Dev Environment

Canonically this package uses Node 18 and `pnpm` as a package manager.
If you are a [Nix](https://nixos.org/) user, there is a `shell.nix` file in the project root.
If you are a [Nix](https://nixos.org/) user, there is a `flake.nix` file in the project root.

Clone the repository and run

Expand Down
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.

25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
description = "";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_18
nodePackages.pnpm
nodePackages.typescript-language-server
vue-language-server
];
};
}
);
}
12 changes: 0 additions & 12 deletions shell.nix

This file was deleted.

0 comments on commit 56da209

Please sign in to comment.