[workspace] F00: empty crates, licences, Nix flake, hook, CI

This commit is contained in:
2026-11-02 00:51:46 +01:00
parent 43f6f9b70c
commit e91356e1bc
20 changed files with 1167 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
{
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 ];
};
});
};
}