Skip to content

Commit

Permalink
add "all" package to flake
Browse files Browse the repository at this point in the history
  • Loading branch information
tstat committed Aug 3, 2023
1 parent 39c3bd5 commit 6e05935
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,16 @@
defaultPackage = flake.packages."unison-cli:exe:unison";
inherit (pkgs) unison-project;
inherit devShells localPackageNames;
packages = flake.packages // {
all = pkgs.symlinkJoin {
name = "all-packages";
paths =
let
all-other-packages = builtins.attrValues (builtins.removeAttrs self.packages."${system}" [ "all" ]);
devshell-inputs = builtins.concatMap (devShell: devShell.buildInputs ++ devShell.nativeBuildInputs) [ devShells.only-tools ];
in
all-other-packages ++ devshell-inputs;
};
};
});
}

0 comments on commit 6e05935

Please sign in to comment.