{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { self, nixpkgs, }: let forAllSystems = function: nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: function nixpkgs.legacyPackages.${system}); in { devShells = forAllSystems (pkgs: { default = pkgs.mkShell { hardeningDisable = ["fortify"]; packages = with pkgs; [ gcc criterion valgrind compiledb gcovr tcsh ]; }; }); formatter = forAllSystems (pkgs: pkgs.alejandra); packages = forAllSystems (pkgs: { default = self.packages.${pkgs.system}._42sh; _42sh = pkgs.callPackage ./42sh.nix { }; }); }; }