lopal/flake.nix

42 lines
899 B
Nix
Raw Permalink Normal View History

2025-05-12 15:50:27 +02:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
nixpkgs,
fenix,
systems,
...
}:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
devShells = forEachSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
toolchain =
with fenix.packages.${system};
combine [
complete.toolchain
];
in
{
default = pkgs.mkShell rec {
buildInputs = with pkgs; [
2025-05-13 09:49:20 +02:00
cargo-watch
2025-05-12 15:50:27 +02:00
toolchain
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
};
}
);
};
}