nixos/hadoop: allow overriding conf files generated by site options with extraconfdirs

This commit is contained in:
illustris 2022-05-16 12:17:11 +05:30 committed by pennae
parent 1285a586c5
commit d1af9d1517

View file

@ -41,5 +41,5 @@ pkgs.runCommand "hadoop-conf" {} (with cfg; ''
cp ${pkgs.writeTextDir "hadoop-user-functions.sh" userFunctions}/* $out/
cp ${pkgs.writeTextDir "hadoop-env.sh" hadoopEnv}/* $out/
cp ${log4jProperties} $out/log4j.properties
${lib.concatMapStringsSep "\n" (dir: "cp -r ${dir}/* $out/") extraConfDirs}
${lib.concatMapStringsSep "\n" (dir: "cp -f -r ${dir}/* $out/") extraConfDirs}
'')