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..." + ''; + }; + }; +}