This commit is contained in:
efim
2022-12-01 12:46:40 +00:00
commit 48c351c983
4 changed files with 67 additions and 0 deletions

23
flake.nix Normal file
View File

@@ -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
}