ghcjs-dom: clean up

This commit is contained in:
Charles Strahan 2014-12-27 21:51:30 -05:00
parent d05e237cb0
commit 0dabcc34c3
1 changed files with 4 additions and 7 deletions

View File

@ -1,15 +1,12 @@
{ cabal, fetchgit, ghc, mtl # This file was auto-generated by cabal2nix. Please do NOT edit manually!
, buildType ? if ghc.ghc.pname or null == "ghcjs" then "jsffi" else "webkit"
, ghcjsBase ? null # jsffi dependencies { cabal, ghcjsBase, mtl, text, fetchgit }:
, glib ? null, transformers ? null, gtk ? null, webkit ? null # webkit dependencies
}:
cabal.mkDerivation (self: { cabal.mkDerivation (self: {
pname = "ghcjs-dom"; pname = "ghcjs-dom";
version = "0.1.1.3"; version = "0.1.1.3";
sha256 = "0pdxb2s7fflrh8sbqakv0qi13jkn3d0yc32xhg2944yfjg5fvlly"; sha256 = "0pdxb2s7fflrh8sbqakv0qi13jkn3d0yc32xhg2944yfjg5fvlly";
buildDepends = [ mtl ] ++ (if buildType == "jsffi" then [ ghcjsBase ] else if buildType == "webkit" then [ glib transformers gtk webkit ] else throw "unrecognized buildType"); buildDepends = [ ghcjsBase mtl text ];
configureFlags = if buildType == "jsffi" then [ ] else if buildType == "webkit" then [ "-f-ghcjs" "-fwebkit" "-f-gtk3" ] else throw "unrecognized buildType";
meta = { meta = {
description = "DOM library that supports both GHCJS and WebKitGTK"; description = "DOM library that supports both GHCJS and WebKitGTK";
license = self.stdenv.lib.licenses.mit; license = self.stdenv.lib.licenses.mit;