2024/10/odin: solve part 1

This commit is contained in:
2025-08-14 22:34:38 +02:00
parent 7db243be05
commit f78d3083ff
3 changed files with 52 additions and 0 deletions

1
2024/10/.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

27
2024/10/flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1755186698,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

24
2024/10/flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
description = "advent of code 2024 day 10 in odin";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
odin
];
shellHook = ''
echo "Entering odin devshell..."
'';
};
};
}