chore: add nix devshell

This commit is contained in:
Yorick Barbanneau 2024-10-07 10:34:49 +02:00
parent 8d265879d2
commit e2528bba4b
2 changed files with 92 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "Development shell for M2 project TD3 course";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { nixpkgs , flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go-task
nodejs
selenium-server-standalone
python3Packages.selenium
];
shellHook = ''
echo "Node is a piece of shit"
'';
};
};
});
}