{ description = "Tabellarius: end-to-end encrypted message relay and client library"; # nixpkgs is pinned by flake.lock; a floating input would make two builds differ. inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: let systems = [ "x86_64-linux" "aarch64-linux" ]; forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); in { packages = forAll (pkgs: { default = pkgs.rustPlatform.buildRustPackage { pname = "tabellarius"; version = "0.0.0"; src = pkgs.lib.cleanSource ./.; cargoLock.lockFile = ./Cargo.lock; doCheck = true; meta.license = with pkgs.lib.licenses; [ agpl3Only asl20 mit ]; }; }); devShells = forAll (pkgs: { default = pkgs.mkShell { packages = with pkgs; [ cargo rustc clippy rustfmt ]; }; }); }; }