My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: use sourceByRegex to include all pds-landing assets in package

+9 -6
+9 -6
modules/server/pds-landing/default.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - path ? ./., 5 4 }: 6 5 6 + let 7 + # Explicitly reference the landing page files 8 + sourceFiles = lib.sourceByRegex ./. [ 9 + "^(index\.html|script\.js|status\.js|utils\.js)$" 10 + "^styles(/.*)?$" 11 + "^assets(/.*)?$" 12 + ]; 13 + in 7 14 stdenv.mkDerivation { 8 15 pname = "pds-landing"; 9 16 version = "1.0.0"; 10 17 11 - src = path; 18 + src = sourceFiles; 12 19 13 - # Unpack the source, then copy everything to output 14 20 phases = [ 15 21 "unpackPhase" 16 22 "installPhase" ··· 18 24 19 25 installPhase = '' 20 26 mkdir -p $out 21 - # Copy all files from the unpacked source 22 27 cp -r . $out/ 23 - # Remove .DS_Store files if present 24 - find $out -name ".DS_Store" -delete 25 28 ''; 26 29 27 30 meta = with lib; {