1
0
Fork 0
mirror of https://codeberg.org/june64/mrvc.git synced 2026-01-09 15:52:53 +01:00
mrvc/flake.nix
June b81d7e9b01
add flake.nix with an mrvc package for various platforms
Only tested x86_64-linux, but the other platforms should just work as
well.
2025-08-18 18:48:04 +02:00

32 lines
1.1 KiB
Nix

{
description = "mrvc (max room version checker) - a tool for determining how many members support which maximum room version for a given Matrix room";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
outputs = { nixpkgs, ... }: {
packages = nixpkgs.lib.attrsets.genAttrs [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" "aarch64-darwin" ] (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
lib = nixpkgs.lib;
in
rec {
mrvc = pkgs.buildGoModule (finalAttrs: {
pname = "mrvc";
version = "0.0.1";
src = ./.;
vendorHash = "sha256-aIPSQSAgsCOL5BR0u28XSO98GY9/5Auvs6tJFy3O7gU=";
meta = {
description = "mrvc - (Matrix) max room version checker";
longDescription = "A tool for determining how many members support which maximum room version for a given Matrix room.";
homepage = "https://codeberg.org/june64/mrvc";
license = lib.licenses.mit;
};
});
default = mrvc;
}
);
};
}