flake: move 'packages' to 'flake/'

This commit is contained in:
Bruno BELANYI 2023-03-07 10:53:47 +00:00
parent 1ae2bca445
commit 40fff4b13a
2 changed files with 11 additions and 11 deletions

10
flake/packages.nix Normal file
View file

@ -0,0 +1,10 @@
{ self, futils, nixpkgs, ... }:
system:
let
inherit (futils.lib) filterPackages flattenTree;
pkgs = nixpkgs.legacyPackages.${system};
packages = import "${self}/pkgs" { inherit pkgs; };
flattenedPackages = flattenTree packages;
finalPackages = filterPackages system flattenedPackages;
in
finalPackages