From f78d3083ffa0481d9701851d6880852960478240 Mon Sep 17 00:00:00 2001 From: fredrikr79 Date: Thu, 14 Aug 2025 22:34:38 +0200 Subject: [PATCH] 2024/10/odin: solve part 1 --- 2024/10/.envrc | 1 + 2024/10/flake.lock | 27 +++++++++++++++++++++++++++ 2024/10/flake.nix | 24 ++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 2024/10/.envrc create mode 100644 2024/10/flake.lock create mode 100644 2024/10/flake.nix diff --git a/2024/10/.envrc b/2024/10/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/2024/10/.envrc @@ -0,0 +1 @@ +use flake diff --git a/2024/10/flake.lock b/2024/10/flake.lock new file mode 100644 index 0000000..ab5f113 --- /dev/null +++ b/2024/10/flake.lock @@ -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 +} diff --git a/2024/10/flake.nix b/2024/10/flake.nix new file mode 100644 index 0000000..b07ea83 --- /dev/null +++ b/2024/10/flake.nix @@ -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..." + ''; + }; + }; +}