mirror of
https://codeberg.org/june64/mrvc.git
synced 2026-01-10 16:06:33 +01:00
add flake.nix with an mrvc package for various platforms
Only tested x86_64-linux, but the other platforms should just work as well.
This commit is contained in:
parent
a566209a36
commit
b81d7e9b01
3 changed files with 60 additions and 0 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
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;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue