Commit dc34884f authored by Vaibhav Sagar's avatar Vaibhav Sagar

Make rtsopts configurable through release.nix

parent a89c6718
{ packages ? (_: []), systemPackages ? (_: []), pkgs ? import <nixpkgs> {} }: { packages ? (_: []), systemPackages ? (_: []), pkgs ? import <nixpkgs> {}, rtsopts ? "-M3g -N2" }:
let let
src = pkgs.lib.cleanSource ./.; src = pkgs.lib.cleanSource ./.;
...@@ -58,7 +58,7 @@ let ...@@ -58,7 +58,7 @@ let
#! ${pkgs.stdenv.shell} #! ${pkgs.stdenv.shell}
export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH" export GHC_PACKAGE_PATH="$(echo ${ihaskellEnv}/lib/*/package.conf.d| tr ' ' ':'):$GHC_PACKAGE_PATH"
export PATH="${pkgs.stdenv.lib.makeBinPath ([ ihaskell ihaskellEnv jupyter ] ++ systemPackages pkgs)}" export PATH="${pkgs.stdenv.lib.makeBinPath ([ ihaskell ihaskellEnv jupyter ] ++ systemPackages pkgs)}"
${ihaskell}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) && ${jupyter}/bin/jupyter notebook ${ihaskell}/bin/ihaskell install -l $(${ihaskellEnv}/bin/ghc --print-libdir) --use-rtsopts="${rtsopts}" && ${jupyter}/bin/jupyter notebook
''; '';
profile = "${ihaskell.pname}-${ihaskell.version}/profile/profile.tar"; profile = "${ihaskell.pname}-${ihaskell.version}/profile/profile.tar";
in in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment