{"repo":"obsidiansystems/obelisk-oauth","free":true,"listed":false,"github":"https://github.com/obsidiansystems/obelisk-oauth","clone":"git clone https://github.com/obsidiansystems/obelisk-oauth.git","description":null,"language":"Haskell","stars":12,"topics":["oauth","haskell"],"license":null,"category":"auth-billing-email","readme_excerpt":"obelisk-oauth Setup This repo contains two packages: obelisk-oauth-common and obelisk-oauth-backend . An example usage of these packages is available in the example directory. To add these packages to your obelisk project, follow the steps below from your obelisk project root (i.e., the folder you ran ob init in). Add dependency thunk The last step here ( ob thunk pack ) replaces the cloned repository with a \"thunk\" that contains all the information obelisk needs to fetch/use the repository when needed. Check out ob thunk --help to learn more about working with thunks. Add packages to default.nix Your skeleton project's default.nix uses the reflex-platform project infrastructure. We can use the packages field of the project configuration to add our custom packages, as follows: Be sure to add hackGet to the list of items to bring into scope. hackGet is a nix function defined in reflex-platform that takes a path that points to either a source directory or a packed thunk (in other words, it takes a path to a thunk but doesn't care whether it's packed or unpacked). It produces a path to the source (unpacked if necessary). Once we've got that path, we just need to append the subdirectory paths to the individual repos contained in this repository. Add packages to cabal files Finally, add obelisk-oauth-common to the build-depends field of common/common.cabal and add obelisk-oauth-common and obelisk-oauth-backend to the build-depends field of the library stanza in backend/backend.cab","default_branch":null,"files":null,"tree":[],"storefront":"/r/obsidiansystems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/obsidiansystems/obelisk-oauth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}