commit 48c351c9839b1c032e9ec6479f4bac3f7f023343 Author: efim Date: Thu Dec 1 12:46:40 2022 +0000 init diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29963da --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.direnv/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..20ac918 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1669898277, + "narHash": "sha256-LYVM2vEghOvH4QiWsN+QSNuFafgvmVRVhHlnV1oessw=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "6060f1268ca7b44d62304564eadb0b0667ea8b84", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c547818 --- /dev/null +++ b/flake.nix @@ -0,0 +1,23 @@ +{ + description = "advent of code with Common-Lisp"; + inputs.nixpkgs.url = "github:nixos/nixpkgs"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem + (system: + let pkgs = nixpkgs.legacyPackages.${system}; in + { + devShells.default = pkgs.mkShell { + buildInputs = [ + pkgs.sbcl + + ]; + shellHook = '' + export SOME_SHELL_VAR=ITS_VALUE + ''; + }; + } + ); + # see https://serokell.io/blog/practical-nix-flakes +}