advent-of-code-2024/flake.nix

29 lines
600 B
Nix
Raw Permalink Normal View History

2024-12-01 10:57:37 -06:00
{
description = "advent of code 2023";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
inherit (nixpkgs.lib) genAttrs;
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: genAttrs systems (system: f (import nixpkgs { inherit system; }));
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
nim
openssl
];
};
});
};
}