From badd116ce551ea2787e312a45d815e253b74d8cd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 19 May 2024 00:03:16 +0200 Subject: flake: add `all` output for easier pushing in CI --- flake.nix | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 281bc6c..484f924 100644 --- a/flake.nix +++ b/flake.nix @@ -15,12 +15,25 @@ forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); in { - legacyPackages = forAllSystems (system: import ./default.nix { + legacyPackages = forAllSystems (system: (import ./default.nix { pkgs = import nixpkgs { inherit system; }; - }); + })); packages = forAllSystems (system: - nixpkgs.lib.filterAttrs - (_: v: nixpkgs.lib.isDerivation v) - self.legacyPackages.${system}); + let + pkgs = import nixpkgs { inherit system; }; + + lpkgs = nixpkgs.lib.filterAttrs + (_: v: nixpkgs.lib.isDerivation v) + self.legacyPackages.${system}; + + all = pkgs.symlinkJoin { + name = "all"; + paths = builtins.attrValues lpkgs; + }; + in + (lpkgs // { + inherit all; + default = all; + })); }; } -- cgit 1.4.1