{ description = "Furumusic development environment"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { nixpkgs, ... }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSystem = function: nixpkgs.lib.genAttrs supportedSystems (system: function (import nixpkgs { inherit system; })); in { devShells = forEachSystem (pkgs: { default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ cargo clippy pkg-config rustc rustfmt ]; buildInputs = with pkgs; [ cacert openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}"; }; }); }; }