Last active
February 27, 2020 16:12
-
-
Save kazcw/467dfe062489c7c71d4bcc8de8bbdba0 to your computer and use it in GitHub Desktop.
run esy under NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
(pkgs.buildFHSUserEnv { | |
name = "esy-env"; | |
targetPkgs = pkgs: (with pkgs; | |
[ | |
# this set suffices to build esy 0.3.4 with esy 0.2.11 | |
# and also to build the hello-ocaml demo with esy 0.3.4 | |
nodejs-10_x | |
stdenv.cc | |
stdenv.cc.bintools | |
gnumake | |
which | |
m4 | |
perl | |
patch | |
# this is for an optional feature | |
libbfd | |
]); | |
multiPkgs = pkgs: ([]); | |
runScript = "bash"; | |
}).env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment