41 lines
873 B
Nix
41 lines
873 B
Nix
|
{
|
||
|
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; [
|
||
|
toolchain
|
||
|
];
|
||
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
};
|
||
|
}
|