-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bin builds #11
Bin builds #11
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,14 +266,25 @@ let | |
echo " > repl" | ||
''; | ||
}; | ||
|
||
nodejs-headers-installer = | ||
with pkgs; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's just use |
||
writeScript "nodejs-headers-installer" '' | ||
echo "* Installing nodejs headers in $HOME/.node-gyp/${nodejs.version} ..." | ||
mkdir -p $HOME/.node-gyp/${nodejs.version} | ||
echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't remember. This code has been cargo-culted heavily :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
ln -sv ${nodejs}/include $HOME/.node-gyp/${nodejs.version}/include | ||
''; | ||
in | ||
{ | ||
inherit | ||
buildPackage | ||
napalm-registry-devshell | ||
nodejs-headers-installer | ||
snapshotFromPackageLockJson | ||
; | ||
|
||
|
||
napalm-registry = haskellPackages.napalm-registry; | ||
|
||
hello-world = pkgs.runCommand "hello-world-test" {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a few lines here about how this is meant to be used? i.e. "make sure your
$HOME
is set and call this executable".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I was thinking of adding a
$HOME
check in the script itself instead.