mirror of https://github.com/sgoudham/website.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
532 B
Nix
23 lines
532 B
Nix
2 years ago
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils, ... }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
in
|
||
|
{
|
||
|
devShells.default = pkgs.mkShell {
|
||
|
name = "yarn-shell";
|
||
|
buildInputs = with pkgs; [
|
||
|
nodejs-18_x
|
||
|
(nodePackages.yarn.override { nodejs = nodejs-18_x; })
|
||
|
];
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
}
|