2024-12-02 21:55:59 -07:00
|
|
|
{
|
|
|
|
description = "Ty's advent of code 2024 solutions";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
2024-12-11 00:43:40 -07:00
|
|
|
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
|
2024-12-02 21:55:59 -07:00
|
|
|
|
2024-12-11 00:43:40 -07:00
|
|
|
outputs = { nixpkgs, flake-utils, rust-overlay, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ rust-overlay.overlays.default ];
|
|
|
|
}; in {
|
|
|
|
devShells.default = pkgs.mkShell {
|
2024-12-02 21:55:59 -07:00
|
|
|
packages = with pkgs; [
|
|
|
|
deno
|
|
|
|
kotlin
|
2024-12-03 21:42:57 -07:00
|
|
|
libsecret
|
2024-12-11 00:43:40 -07:00
|
|
|
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
|
|
|
|
extensions = [ "rust-src" "rustfmt" ];
|
|
|
|
targets = [ "x86_64-unknown-linux-gnu" ];
|
|
|
|
}))
|
2024-12-02 21:55:59 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|