Skip to content

Commit

Permalink
chore: add nix flake for devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Jul 13, 2024
1 parent 5740a74 commit 94a11be
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
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.

27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
# this project requires node 14, which is only available in older nixos channels
nixpkgs-old.url = "github:NixOS/nixpkgs/nixos-22.11";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {
nixpkgs,
nixpkgs-old,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs { inherit system; };
pkgs-old = import nixpkgs-old { inherit system; };
in {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
mailpit
pkgs-old.nodejs-14_x
(pkgs-old.yarn.override { nodejs = pkgs-old.nodejs-14_x; })
];
};
});
}

0 comments on commit 94a11be

Please sign in to comment.