ebook-manager/default.nix

71 lines
2.6 KiB
Nix
Raw Normal View History

{ nixpkgs, haskellPackages }:
2018-11-12 23:27:29 +02:00
let
jsaddle = nixpkgs.fetchFromGitHub {
owner = "ghcjs";
repo = "jsaddle";
2018-11-14 00:20:00 +02:00
rev = "34fe7d61b3f387b81aa748294ac8d993243f53b4";
sha256 = "0qdh5qdk23vcp1yp910zgw2hs4zpbx9ig25xgaax0iwj2m1ifh5x";
2018-11-12 23:27:29 +02:00
};
miso = nixpkgs.fetchFromGitHub {
owner = "dmjio";
repo = "miso";
rev = "a9c4f0a3a6e7d87f9432dc6cf4b1d0c052bf7ef1";
sha256 = "1yq5y4vffslm6abnfnggp5m3k6vla6mzcwmhmm23l8yizsvdkwv2";
};
2018-11-14 00:20:00 +02:00
miso-jsaddle = super: if haskellPackages.ghc.isGhcjs or false then (super.callPackage (miso + "/miso-ghcjs.nix") {}) else (super.callPackage (miso + "/miso-ghc-jsaddle.nix") {});
2018-11-12 22:58:50 +02:00
2018-11-13 00:21:20 +02:00
dontCheck = nixpkgs.haskell.lib.dontCheck;
2018-11-12 22:58:50 +02:00
in
(import ./project.nix nixpkgs) {
2018-11-12 23:40:04 +02:00
haskellPackages = haskellPackages;
packages = {
common = ./common;
backend = ./backend;
2018-11-12 22:58:50 +02:00
frontend = ./frontend;
};
2018-10-17 23:51:30 +03:00
overrides = self: super: {
generic-lens = nixpkgs.haskell.lib.dontCheck super.generic-lens;
2018-11-12 22:58:50 +02:00
jsaddle-warp = nixpkgs.haskell.lib.dontCheck (super.callPackage (jsaddle + "/jsaddle-warp") {});
jsaddle = super.callPackage (jsaddle + "/jsaddle") {};
2018-11-14 00:20:00 +02:00
miso = miso-jsaddle super;
2018-11-13 00:21:20 +02:00
doctest = null; # Not compilable with ghcjs
comonad = dontCheck super.comonad;
Glob = dontCheck super.Glob;
SHA = dontCheck super.SHA;
iproute = dontCheck super.iproute;
semigroupoids = dontCheck super.semigroupoids;
wai-app-static = dontCheck super.wai-app-static;
attoparsec = dontCheck super.attoparsec;
http-date = dontCheck super.http-date;
lens = dontCheck super.lens;
unix-time = dontCheck super.unix-time;
http-types = dontCheck super.http-types;
servant = dontCheck super.servant;
2018-11-14 00:20:00 +02:00
servant-server = dontCheck super.servant-server;
servant-auth-docs = dontCheck super.servant-auth-docs;
lens-aeson = dontCheck super.lens-aeson;
2018-11-13 00:21:20 +02:00
word8 = dontCheck super.word8;
http2 = dontCheck super.http2;
wai-extra = dontCheck super.wai-extra;
2018-11-14 00:20:00 +02:00
pgp-wordlist = dontCheck super.pgp-wordlist;
prettyprinter = dontCheck super.prettyprinter;
unliftio = dontCheck super.unliftio;
prettyprinter-ansi-terminal = dontCheck super.prettyprinter-ansi-terminal;
distributive = dontCheck super.distributive;
genvalidity-property = dontCheck super.genvalidity-property;
genvalidity-hspec = dontCheck super.genvalidity-hspec;
genvalidity = dontCheck super.genvalidity;
megaparsec = dontCheck super.megaparsec;
ncurses = null;
haskeline = super.callHackage "haskeline" "0.7.4.2" {};
2018-11-12 23:56:30 +02:00
terminfo = super.callHackage "terminfo" "0.4.1.1" {};
2018-10-17 23:51:30 +03:00
};
2018-08-29 23:03:24 +03:00
tools = with haskellPackages; [
ghcid
hasktags
];
2018-08-02 21:39:08 +03:00
}