2024-10-20 22:19:05 +02:00
|
|
|
{
|
|
|
|
description = "jftt";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
fenix = {
|
|
|
|
url = "github:nix-community/fenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.rust-analyzer-src.follows = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-03 22:05:19 +01:00
|
|
|
outputs = { nixpkgs, systems, fenix, ... }: let
|
2024-10-20 22:19:05 +02:00
|
|
|
name = "jftt";
|
|
|
|
|
|
|
|
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
|
|
|
pkgsForEach = nixpkgs.legacyPackages;
|
|
|
|
in {
|
|
|
|
devShells = forEachSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = pkgsForEach.${system};
|
|
|
|
in {
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
rust-analyzer
|
|
|
|
(fenix.packages.${system}.complete.withComponents [
|
|
|
|
"cargo"
|
|
|
|
"rustc"
|
|
|
|
"rust-src"
|
|
|
|
])
|
2024-11-03 22:05:19 +01:00
|
|
|
flex
|
2024-10-20 22:19:05 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
}
|