1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

feat: Support store subpaths in partitions.<name>.extraInputsFlake

This commit is contained in:
Robert Hensing 2024-09-02 10:35:19 +02:00
parent 567b938d64
commit 20c0c789f7

View file

@ -74,6 +74,7 @@ let
p = options.extraInputsFlake.value;
flake =
if builtins.typeOf p == "path"
|| (builtins.typeOf p == "string" && lib.strings.hasPrefix "${builtins.storeDir}/" p)
then get-flake p
else builtins.getFlake p;
in