Skip to content

Instantly share code, notes, and snippets.

@kazcw
Last active February 27, 2020 16:12
Show Gist options
  • Save kazcw/467dfe062489c7c71d4bcc8de8bbdba0 to your computer and use it in GitHub Desktop.
Save kazcw/467dfe062489c7c71d4bcc8de8bbdba0 to your computer and use it in GitHub Desktop.
run esy under NixOS
{ 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