1# Source: https://git.helsinki.tools/helsinki-systems/nc4nix/-/raw/main/nc-versions.nix
2# Licensed under: MIT
3
4# this file is used to figure out which versions of nextcloud we have in nixpkgs
5{
6 pkgs ? import ../../../.. { },
7 lib ? pkgs.lib,
8}:
9let
10 n = lib.mapAttrsToList (_: v: v.version) (
11 lib.filterAttrs (
12 k: v: builtins.match "nextcloud[0-9]+" k != null && (builtins.tryEval v.version).success
13 ) pkgs
14 );
15in
16{
17 inherit n;
18 e = lib.concatStringsSep "," n;
19}