From 1002509dd41e811c90f90154d952a0cb57d76f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Estrella?= <2049686+sestrella@users.noreply.github.com> Date: Wed, 27 Mar 2024 08:19:53 -0500 Subject: [PATCH] feat: Remove cycles from packages (#66) BREAKING CHANGE: Remove cycle packages from flake.nix --- flake.nix | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/flake.nix b/flake.nix index 65b435a..99f0b08 100644 --- a/flake.nix +++ b/flake.nix @@ -22,29 +22,7 @@ checks = config.packages; - packages = - let - versions = import ./lib/packages.nix { inherit pkgs pkgs-unstable; custom-lib = self.lib; }; - linkPackagesByCycle = versionsPerCycle: builtins.mapAttrs - (cycle: cycleVersions: pkgs.symlinkJoin { - name = "terraform-${cycle}"; - paths = builtins.map (version: versions.${version}) cycleVersions; - }) - versionsPerCycle; - groupVersionsByCycle = versions: builtins.groupBy - (version: - let - splittedVersion = builtins.splitVersion version; - in - "all-" + (builtins.concatStringsSep "." [ - (builtins.elemAt splittedVersion 0) - (builtins.elemAt splittedVersion 1) - ]) - ) - (builtins.attrNames versions); - cycles = linkPackagesByCycle (groupVersionsByCycle versions); - in - versions // cycles; + packages = import ./lib/packages.nix { inherit pkgs pkgs-unstable; custom-lib = self.lib; }; overlayAttrs = { terraform-versions = config.packages;