Skip to content

Commit

Permalink
chore(fix): Actually use nixNuModule
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 27, 2024
1 parent 5be076d commit c9cb104
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/nu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
text = ''
use std *
let bins = '${builtins.toJSON (builtins.map (p: "${p}/bin") runtimeInputs)}' | from json
log debug $"Adding runtime inputs to PATH: ($bins)"
if $bins != [] {
log debug $"Adding runtime inputs to PATH: ($bins)"
path add ...$bins
}
'';
Expand All @@ -33,6 +33,7 @@
cd $out/bin
rm -f ${mainScript}
echo "#!${pkgs.nushell}/bin/nu" >> ${mainScript}
cat ${nixNuModule} >> ${mainScript}
cat ${scriptDir}/${mainScript} >> ${mainScript}
chmod a+x ${mainScript}
${extraBuildCommand}
Expand Down

0 comments on commit c9cb104

Please sign in to comment.