Skip to content

Instantly share code, notes, and snippets.

@hamishmack
Created February 22, 2018 20:58
Show Gist options
  • Save hamishmack/30c7b42f2ef36f818dc42faf2dc6f041 to your computer and use it in GitHub Desktop.
Save hamishmack/30c7b42f2ef36f818dc42faf2dc6f041 to your computer and use it in GitHub Desktop.
servant/reflex setup example
let
reflex-platform = import ((import <nixpkgs> {}).pkgs.fetchFromGitHub {
owner = "reflex-frp";
repo = "reflex-platform";
rev = "55bddde319d7c8f6edcc80941926c611098f0875";
sha256 = "0680vapmfwbj308mcg4fgr60zjb7j6in2p3lppzsd7ydlfhnsbvv";
}) {};
nixpkgs = reflex-platform.nixpkgs;
servant-auth-github = nixpkgs.fetchFromGitHub {
owner = "hamishmack";
repo = "servant-auth";
rev = "77f246501cb5e83074e96a0ce419b58974406173";
sha256 = "0g1ig082bxa7lh0yh30rbww23cmvww0al44ld3gckn0lidn3ksa2";
};
project = reflex-platform.project ({ pkgs, ... }: {
packages = {
...
servant-reflex = pkgs.fetchFromGitHub {
owner = "imalsogreg";
repo = "servant-reflex";
rev = "6593c1ce806a2ac247fa786184c906616236dbd7";
sha256 = "0sv5qd51ia8zav7aqpmz7v0y34kimi4f4ngqql5b3sl6qqn3zq7q";
};
servant-auth = "${servant-auth-github}/servant-auth" ;
servant-auth-server = "${servant-auth-github}/servant-auth-server";
};
overrides = self: super: {
servant-reflex = pkgs.haskell.lib.doJailbreak super.servant-reflex;
servant-auth-server = pkgs.haskell.lib.dontCheck super.servant-auth-server;
};
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment