1
1
mirror of https://github.com/srid/rib.git synced 2024-11-26 04:15:35 +03:00
rib/default.nix
Sridhar Ratnakumar 8c00db5b11
Markdown rendering (#1)
* Import old Markdown code (from revue)

* Upgrade mmaark

* Hook up everything

* Fix most build issues

* Go back to rendering in backend

mmark borks (ghcjs TH bug) on frontend build
2019-06-18 21:43:13 -04:00

35 lines
1.3 KiB
Nix

{ obelisk ? import ./.obelisk/impl {
system = builtins.currentSystem;
iosSdkVersion = "10.2";
# You must accept the Android Software Development Kit License Agreement at
# https://developer.android.com/studio/terms in order to build Android apps.
# Uncomment and set this to `true` to indicate your acceptance:
# config.android_sdk.accept_license = false;
}
}:
with obelisk;
project ./. ({ pkgs, hackGet, ... }: {
android.applicationId = "ca.srid.ExplainingHaskell";
android.displayName = "Explaining Haskell";
ios.bundleIdentifier = "ca.srid.ExplainingHaskell";
ios.bundleName = "Explaining Haskell";
packages = {
# Newer mmark requires newer version of certain dependencies as well
mmark = hackGet ./dep/mmark;
megaparsec = hackGet ./dep/megaparsec;
hspec-megaparsec = hackGet ./dep/hspec-megaparsec;
modern-uri = hackGet ./dep/modern-uri;
# Use a version of neat-interpolation that works with the megaparsec version
# used by mmark above.
neat-interpolation = hackGet ./dep/neat-interpolation;
};
overrides = self: super: with pkgs.haskell.lib; {
mmark = dontHaddock (dontCheck super.mmark); # Haddock fails on ghcjs
megaparsec = dontCheck super.megaparsec;
email-validate = dontCheck super.email-validate;
};
})