init
This commit is contained in:
23
flake.nix
Normal file
23
flake.nix
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user