mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-22 05:34:41 +01:00
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
||
|
systems.url = "github:nix-systems/default";
|
||
|
devenv.url = "github:cachix/devenv";
|
||
|
fenix.url = "github:nix-community/fenix";
|
||
|
};
|
||
|
|
||
|
nixConfig = {
|
||
|
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
||
|
extra-substituters = "https://devenv.cachix.org";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
|
||
|
let
|
||
|
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
||
|
in
|
||
|
{
|
||
|
devShells = forEachSystem
|
||
|
(system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
in
|
||
|
{
|
||
|
default = devenv.lib.mkShell {
|
||
|
inherit inputs pkgs;
|
||
|
modules = [
|
||
|
({pkgs, config, ...}: {
|
||
|
languages.rust = {
|
||
|
enable = true;
|
||
|
channel = "nightly";
|
||
|
};
|
||
|
packages = [];
|
||
|
})
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|