depot/third_party/nixpkgs/pkgs/servers/nextcloud/packages/nc-versions.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

13 lines
467 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 <nixpkgs> {}, 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;
}