mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-10 16:00:19 -04:00
12 lines
391 B
Nix
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;
|
|
}
|