fix subdir regex match

This commit is contained in:
jacekpoz 2024-09-12 22:50:30 +02:00
parent cd3efc420c
commit dc4a7baf87
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -28,7 +28,7 @@ in pkgs.stdenv.mkDerivation {
${concatStrings (forEach extraFiles ${concatStrings (forEach extraFiles
(extraFile: let (extraFile: let
isInSubdir = (match ".+/.+" extraFile.destination) != null; isInSubdir = (match ".+/.*" extraFile.destination) != null;
outDir = concatStrings (init (splitString "/" extraFile.destination)); outDir = concatStrings (init (splitString "/" extraFile.destination));
outPath = normalizePath "$out/${extraFile.destination}"; outPath = normalizePath "$out/${extraFile.destination}";
in /*sh*/'' in /*sh*/''