Skip to content

Instantly share code, notes, and snippets.

@tdietert
Created June 4, 2019 15:57
Show Gist options
  • Save tdietert/2c2e7544521df27dfaab35c1d7a1f91a to your computer and use it in GitHub Desktop.
Save tdietert/2c2e7544521df27dfaab35c1d7a1f91a to your computer and use it in GitHub Desktop.
{ nixpkgs ? (import <nixpkgs> { config = {
packageOverrides = nixpkgs: rec {
flow = nixpkgs.flow.override {
installPhase = ''
cp frontend/classroom/node_modules/flow-bin/flow-linux64-v*/flow flow
chmod a+rw flow
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath ".:${nixpkgs.stdenv.cc.libc}/lib" \
flow
'';
};
};
};
})
, ghc ? nixpkgs.ghc
}:
with nixpkgs;
haskell.lib.buildStackProject {
name = "freckle-megarepo";
buildInputs = [
# setup
curl
adoptopenjdk-jre-bin
htop
git
gnumake
postgresql
openvpn
unzip
xclip
docker
docker-compose
awscli
pcre
glpk
zlib
haskellPackages.ghc
haskellPackages.stack
# frontend
yarn
];
inherit ghc;
inherit flow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment