Skip to content

Commit

Permalink
yessss
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesGitH committed Apr 1, 2024
1 parent d14eac5 commit 4ee9f14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
26 changes: 9 additions & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
src = svelte-navbar-src;
buildInputs = with pkgs; [ nodejs git ];
configurePhase = ''
for localDir in build node_modules; do
if [[ -d $localDir || -L $localDir ]]; then
echo "$localDir dir present. Removing."
rm -rf $localDir
fi
done
cp -r $node_modules node_modules
chmod -R +w node_modules
ln -sf ${esbuild}/bin/esbuild node_modules/esbuild/bin/esbuild
Expand Down Expand Up @@ -65,33 +71,19 @@
src = self;
buildInputs = with pkgs; [ nodejs git ];
configurePhase = ''
# for localDir in build node_modules; do
# if [[ -d $localDir || -L $localDir ]]; then
# echo "$localDir dir present. Removing."
# rm -rf $localDir
# fi
# done
mkdir -p dependencies
cp -rf ${svelte-navbar} dependencies/svelte-navbar
ls -la src/lib
ls -la dependencies/svelte-navbar
mkdir -p dependencies/svelte-navbar
cp -r ${svelte-navbar}/. dependencies/svelte-navbar
cp -r $node_modules node_modules
chmod -R +w node_modules
# ls -la src/lib
# ls -la dependencies
# ls -la .
ln -sf ${esbuild}/bin/esbuild node_modules/esbuild/bin/esbuild
ln -sf ${esbuild}/bin/esbuild node_modules/esbuild-linux-64/bin/esbuild
'';
buildPhase = ''
# yarn install --offline --frozen-lockfile
yarn --offline --frozen-lockfile build
cp -rf ${pdf}/resume.pdf build/resume.pdf
# chmod 777 resume.pdf
# ls -la .
'';
installPhase = ''
mkdir -p $out
Expand Down
2 changes: 1 addition & 1 deletion result

0 comments on commit 4ee9f14

Please sign in to comment.