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
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/result
|
||||||
27
flake.lock
generated
Normal file
27
flake.lock
generated
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755471983,
|
||||||
|
"narHash": "sha256-axUoWcm4cNQ36jOlnkD9D40LTfSQgk8ExfHSRm3rTtg=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "48f4c982de68d966421d2b6f1ddbeb6227cc5ceb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-25.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
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