Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions package-sets/top-level/nixos-branding/deployed-assets/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
nixos-branding-guide,
runCommandLocal,
symlinkJoin,
tree,
}:

let
Expand Down Expand Up @@ -38,10 +39,33 @@ runCommandLocal "deployed-assets"
internals
logos
;

buildInputs = [ tree ];
}
''
mkdir -p $out/{documents,internals,logos}
cp -r $documents/* $out/documents
cp -r $internals/* $out/internals
cp -r $logos/* $out/logos

cd $out
find . -type d -print0 | while IFS= read -r -d "" dir; do
(
cd "$dir" || exit
tree . \
-H "" \
-L 1 \
--noreport \
--houtro "" \
--dirsfirst \
--charset utf-8 \
-I "index.html" \
-T "NixOS Branding" \
--ignore-case \
--timefmt "%d-%b-%Y %H:%M" \
-s \
-D \
-o index.html
)
done
''