-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.nix
29 lines (27 loc) · 812 Bytes
/
build.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ }:
with import <nixpkgs> {};
let haskellPackages = pkgs.haskellPackages_ghcjs.override {
extension = self: super: {
react-haskell = self.callPackage ./. {};
};
};
cabal = haskellPackages.cabal.override {
extension = self: super: {
buildTools = super.buildTools ++ [ haskellPackages.ghc.ghc.parent.cabalInstall ];
};
};
in with haskellPackages; cabal.mkDerivation (self: {
pname = "reactHaskellGhcjs";
version = "1.3.0.0";
src = ./.;
buildDepends = [
deepseq ghcjsBase ghcjsDom ghcjsPrim lensFamily monadsTf
transformers void
];
meta = {
homepage = "https://github.com/joelburget/react-haskell";
description = "Haskell React bindings";
license = self.stdenv.lib.licenses.mit;
platforms = self.ghc.meta.platforms;
};
})