32 lines
778 B
Nix
32 lines
778 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
fenix.url = "github:nix-community/fenix";
|
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
flake-compat = {
|
|
url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz";
|
|
flake = false;
|
|
};
|
|
};
|
|
outputs =
|
|
{ nixpkgs, fenix, ... }:
|
|
let
|
|
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
|
in
|
|
{
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
overlays = [ fenix.overlays.default ];
|
|
};
|
|
in
|
|
{
|
|
default = import ./devShell.nix { inherit pkgs; };
|
|
}
|
|
);
|
|
};
|
|
}
|