Hi,
I’ve got a package which gets build from the local sources as:
whitelistSource = src: allowedPrefixes:
builtins.filterSource
(path: type:
lib.any
(allowedPrefix:
lib.hasPrefix (toString (src + "/${allowedPrefix}")) path)
allowedPrefixes)
src;
src = whitelistSource ../../../. [
"Cargo.lock"
"Cargo.toml"
"p1"
"p2"
];
Now I have a dependency to a path in a repo which i can fetch using fetchFromGitHub.
How can I combine both sources?
I’ve tried using srcs = [local… remote + “/folder” ]; but that seems to fetch what’s inside /folder rather than the “/folder”, if that makes sense. Also the build ends up failing with “unpacker produced multiple directories”.
Thanks!