Skip to content

Commit

Permalink
fix error when launching nix-shell and hugo is allready present
Browse files Browse the repository at this point in the history
  • Loading branch information
dpolakovics committed Oct 3, 2023
1 parent 274b401 commit 336b78f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ in stdenv.mkDerivation {
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
mkdir -p $PWD/node_modules/.bin/hugo
ln -s ${nix_pkgs_with_hugo_106.hugo}/bin/hugo $PWD/node_modules/.bin/hugo/hugo
if [ ! -f $PWD/node_modules/.bin/hugo/hugo ]
then
ln -s ${nix_pkgs_with_hugo_106.hugo}/bin/hugo $PWD/node_modules/.bin/hugo/hugo
fi
cat <<EOT > $PWD/node_modules/.bin/hugo/version.json
{
"arch": "x64",
Expand Down

0 comments on commit 336b78f

Please sign in to comment.