2023-12-06 23:31:00 -08:00
|
|
|
{
|
|
|
|
description = "It's Adventing Time";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
}: let
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
genSystems = lib.genAttrs [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
|
|
|
pkgsFor = system: import nixpkgs {inherit system;};
|
|
|
|
in {
|
|
|
|
devShells = genSystems (
|
|
|
|
system: let
|
|
|
|
pkgs = pkgsFor system;
|
|
|
|
in {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.clang-tools
|
|
|
|
(pkgs.sbcl.withPackages (p:
|
|
|
|
with p; [
|
|
|
|
alexandria
|
|
|
|
cl-ppcre
|
|
|
|
iterate
|
|
|
|
split-sequence
|
|
|
|
str
|
|
|
|
]))
|
|
|
|
(pkgs.ghc.withPackages (p:
|
|
|
|
with p; [
|
|
|
|
containers
|
2023-12-09 00:01:25 -08:00
|
|
|
extra
|
2023-12-06 23:31:00 -08:00
|
|
|
regex-compat
|
|
|
|
split
|
2023-12-10 20:14:59 -08:00
|
|
|
text
|
|
|
|
text-icu
|
2023-12-06 23:31:00 -08:00
|
|
|
unordered-containers
|
|
|
|
vector
|
|
|
|
]))
|
|
|
|
];
|
|
|
|
CXXFLAGS = "-std=c++20 -Wall";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
formatter = genSystems (system: (pkgsFor system).alejandra);
|
|
|
|
};
|
|
|
|
}
|