The packages you specify via the packages
attribute are the ones it will build dependencies for, but not build. You want to return a list of packages selected from the argument attribute set, like
packages = hsPkgs: [hsPkgs.pkgA, hsPkgs.pkgB];
The packages you specify via the packages
attribute are the ones it will build dependencies for, but not build. You want to return a list of packages selected from the argument attribute set, like
packages = hsPkgs: [hsPkgs.pkgA, hsPkgs.pkgB];
Thanks for clearing that up for me!
I have this snippet in my flake now:
packages = _: [ self.packages.${system}.default ];
And it seems to do exactly what I wanted.