Skip to content

Commit

Permalink
Switch to nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki committed Jun 21, 2024
1 parent 5f49164 commit de78012
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 5 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use_flake
78 changes: 78 additions & 0 deletions flake.lock

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

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell { nativeBuildInputs = [ pkgs.nodejs ]; };
formatter = pkgs-unstable.nixfmt-rfc-style;
}
);
}
5 changes: 0 additions & 5 deletions shell.nix

This file was deleted.

0 comments on commit de78012

Please sign in to comment.