Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created October 24, 2022 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/2c0b8f08c656bf16ee877e1bf3204a3a to your computer and use it in GitHub Desktop.
Save amitaibu/2c0b8f08c656bf16ee877e1bf3204a3a to your computer and use it in GitHub Desktop.
let
# Execute:
# nix-shell --run 'make build/ihp-lib's
ihp = builtins.fetchGit {
url = "https://github.com/digitallyinduced/ihp.git";
# ref = "refs/tags/v0.19.0";
rev = "05f1eafbe897dfdbf8a77e5bd0673b1857f4e8c2";
};
haskellEnv = import "${ihp}/NixSupport/default.nix" {
ihp = ihp;
haskellDeps = p: with p; [
cabal-install
base
wai
text
hlint
p.ihp
];
otherDeps = p: with p; [
# Native dependencies, e.g. imagemagick
nodejs
# For testing concurrent requests.
parallel
];
projectPath = ./.;
};
in
haskellEnv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment