Inception/flake.nix

38 lines
752 B
Nix

{
description = "Shell for inception 42 project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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 = "inception-42";
buildInputs = with pkgs; [
docker
docker-compose
htop
vim
zsh
openssl
curl
] ++ (
if pkgs.stdenv.isLinux then [
valgrind
] else []
);
shellHook = ''
printf "\n\033[0;90mInception env loaded for: \033[38;5;220m${system}\033[0m\n"
'';
};
}
);
}