Skip to content

Commit

Permalink
feat(nix): add custom nix environment to use Node.js v14
Browse files Browse the repository at this point in the history
  • Loading branch information
zainfathoni committed Jun 20, 2022
1 parent 8c5bdd5 commit e55b6dc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
description = "Use nodejs-14_x in pkode";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, utils, ... }:
utils.lib.eachDefaultSystem (system:
let
inherit (lib) attrValues;
pkgs = nixpkgs.legacyPackages.${system};
lib = nixpkgs.lib;
in
rec {
devShell = with pkgs; mkShell {
buildInputs = [
nodejs-14_x
];
};
});

}

0 comments on commit e55b6dc

Please sign in to comment.