2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 06:33:42 +00:00
nixpkgs/pkgs/servers/nextcloud/packages/nc-versions.nix
2023-03-28 18:43:27 -07:00

14 lines
469 B
Nix

# Source: https://git.helsinki.tools/helsinki-systems/nc4nix/-/raw/main/nc-versions.nix
# Licensed under: MIT
# this file is used to figure out which versions of nextcloud we have in nixpkgs
{ pkgs ? import ../../../.. {}, lib ? pkgs.lib }:
let
n = lib.mapAttrsToList (_: v: v.version) (
lib.filterAttrs (k: v: builtins.match "nextcloud[0-9]+" k != null && (builtins.tryEval v.version).success)
pkgs);
in {
inherit n;
e = lib.concatStringsSep "," n;
}