constellation/nix/lib/by-name/constellationRepoRootSrc/package.nix
Moritz Sanft e5d22ebcaf
nix: boostrap "v2" tree (#3740)
Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2025-04-04 10:22:28 +02:00

12 lines
391 B
Nix

# Returns a package set originating from the root of the Constellation repository.
# The `files` attribute is a list of paths relative to the root of the repository.
{ lib }:
files:
let
filteredFiles = lib.map (subpath: lib.path.append lib.constellationRepoRoot subpath) files;
in
lib.fileset.toSource {
root = lib.constellationRepoRoot;
fileset = lib.fileset.unions filteredFiles;
}