23 lines
566 B
Nix
23 lines
566 B
Nix
|
{
|
||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
outputs = {
|
||
|
self,
|
||
|
nixpkgs,
|
||
|
}: let
|
||
|
# inherit (self) outputs;
|
||
|
systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
|
||
|
forSystems = nixpkgs.lib.genAttrs systems;
|
||
|
pkgsFor = system: (import nixpkgs {inherit system;});
|
||
|
genPkgs = func: (forSystems (system: func (pkgsFor system)));
|
||
|
in {
|
||
|
devShells = genPkgs (pkgs: {
|
||
|
default = pkgs.mkShell {
|
||
|
packages = with pkgs; [
|
||
|
picotool
|
||
|
rustup
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|