Skip to content

Commit

Permalink
downgrade node to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelglass committed Aug 29, 2024
1 parent 6c4dbb4 commit bd37b72
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.4.1
20.15.1
54 changes: 25 additions & 29 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,34 @@
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";

outputs =
{ self
, nixpkgs
, flake-utils
}:
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
assertVersion = version: pkg: (
assert (pkgs.lib.assertMsg (builtins.toString pkg.version == version) ''
Expecting version of ${pkg.name} to be ${version} but got ${pkg.version};
'');
pkg
);
pkgs = import nixpkgs
{
let
assertVersion = version: pkg:
(assert (pkgs.lib.assertMsg
(builtins.toString pkg.version == version) ''
Expecting version of ${pkg.name} to be ${version} but got ${pkg.version};
'');
pkg);
pkgs = import nixpkgs {
system = system;
config.allowUnfree = true;
};

in
{
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
(assertVersion (nixpkgs.lib.strings.fileContents "${self}/.node-version") nodejs_22)
# caddy is used to mimic github actions more closely than the vite dev server. Not used in production
(assertVersion "2.7.6" caddy)
# comrak is used to preview rendered markdown. Not used in production.
(assertVersion "0.23.0" comrak)
# used for testing dead website links
(assertVersion "1.21.4" wget)
];
};
});
in {
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
packages = with pkgs; [
(assertVersion
(nixpkgs.lib.strings.fileContents "${self}/.node-version")
nodejs_20)
# caddy is used to mimic github actions more closely than the vite dev server. Not used in production
(assertVersion "2.7.6" caddy)
# comrak is used to preview rendered markdown. Not used in production.
(assertVersion "0.23.0" comrak)
# used for testing dead website links
(assertVersion "1.21.4" wget)
];
};
});
}

0 comments on commit bd37b72

Please sign in to comment.