nixpkgs/pkgs/servers/nextcloud/packages/nc-versions.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
469 B
Nix
Raw Normal View History

2022-10-23 12:54:25 +00:00
# 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
2023-03-29 01:43:27 +00:00
{ pkgs ? import ../../../.. {}, lib ? pkgs.lib }:
2022-10-23 12:54:25 +00:00
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;
}