dotfiles/.config/nixshell/vuejs.nix
2023-04-08 16:59:16 +02:00

25 lines
412 B
Nix

with (import <nixpkgs> {});
let
vueCli = pkgs.fetchFromGitHub {
owner = "vuejs";
repo = "vue-cli";
rev = "v4.5.15";
sha256 = "sha256-zJhk7tZAjqGLQOSTs3t5pj5qNtwersItGUM2oD4/R8o=";
};
in mkShell {
buildInputs = [
yarn
nodejs
vueCli
] ++ (with pkgs.nodePackages; [
npm
nodemon
]);
shellHook = ''
export NAME="vue-shell"
export PATH=$(yarn bin):$PATH
'';
}