Solving the problems from Project Euler so that my brain stops rotting on League of Legends and Elden Ring xd.
I will be using devenv to manage the project
dependencies since I'll be programming in multiple languages, namely...
Using nix to manage the project dependencies will make my life easy as I
develop across different systems.
Follow the instructions from devenv
using the instructions found here.
### Via https://zero-to-nix.com/start/install (recommended)
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
### Via https://devenv.sh/getting-started/
## Linux
sh <(curl -L https://nixos.org/nix/install) --daemon
## macOS
curl -L https://raw.githubusercontent.com/NixOS/experimental-nix-installer/main/nix-installer.sh | sh -s install
## WSL2
sh <(curl -L https://nixos.org/nix/install) --no-daemon## General
nix-env -iA devenv -f https://github.com/NixOS/nixpkgs/tarball/nixpkgs-unstable
## NixOS
# Add the following to your configuration.nix somewhere
environment.systemPackages = [
pkgs.devenv
];Defines the configuration for the devenv shell. This is where we define all
the tooling, packages, scripts, services, processes, etc. that we need for the
project.
The yaml defines the sources for all the packages, i.e. where are we getting
the cached builds or build instructions for nix.
Call devenv shell to install all the project dependencies specified in
./devenv.nix, then spawn a development shell with all the proper
dependencies set up.