lol
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{ pkgs ? import ../../../.. {}, lib ? pkgs.lib }:
6let
7 n = lib.mapAttrsToList (_: v: v.version) (
8 lib.filterAttrs (k: v: builtins.match "nextcloud[0-9]+" k != null && (builtins.tryEval v.version).success)
9 pkgs);
10in {
11 inherit n;
12 e = lib.concatStringsSep "," n;
13}