-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try just addding ghc 8.10 native, no mobile or ghcjs
- Loading branch information
1 parent
1aba6f3
commit c95c095
Showing
10 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ haskellLib | ||
, fetchFromGitHub | ||
, nixpkgs | ||
}: | ||
with haskellLib; | ||
let # Adds additional arguments to 'buildInputs' and the 'HASKELL_GI_GIR_SEARCH_PATH' environment variable | ||
# used by haskell-gi to specify non-standard locations .gir file locations | ||
# addGIDeps :: haskellPackage -> [nixPackage] -> [nixPackage] -> haskellPackage | ||
addGIDeps = p: extraBuildInputs: girSearchPathPackages: p.overrideAttrs (drv: { | ||
# cabal2nix puts these deps in libraryPkgconfigDepends but that doesn't seem to suffice. | ||
buildInputs = with nixpkgs; drv.buildInputs or [] ++ [ pkgconfig gobjectIntrospection ] ++ extraBuildInputs; | ||
libraryPkgconfigDepends = drv.libraryPkgconfigDepends or [] ++ [nixpkgs.gobject-introspection]; | ||
# This preConfigure should have been added by cabal2nix according to this commit: https://github.com/NixOS/cabal2nix/commit/426fde8847370c32731a1db314283f5ebcbabeb7 | ||
# though that functionality was removed in a later commit: https://github.com/NixOS/cabal2nix/commit/2d278a8a1527b278939ba478fe915aa2f87cc22e#diff-387ec31295a66a4f73b8d4b507a239a2 | ||
# Cf. https://github.com/haskell-gi/haskell-gi/issues/36 | ||
preConfigure = "export HASKELL_GI_GIR_SEARCH_PATH=" + | ||
nixpkgs.lib.concatStringsSep ":" | ||
(map (x: "${x.dev}/share/gir-1.0") ([nixpkgs.gobjectIntrospection] ++ girSearchPathPackages)); | ||
}); | ||
in self: super: { | ||
|
||
# Overrides for gi-* family of libraries. See addGIDeps, above. | ||
haskell-gi-base = addGIDeps (super.haskell-gi-base) [nixpkgs.glib] []; | ||
gi-glib = addGIDeps (super.gi-glib) [] []; | ||
gi-cairo = addGIDeps (super.gi-cairo) [nixpkgs.cairo] []; | ||
gi-gobject = addGIDeps (super.gi-gobject) [] []; | ||
gi-pango = addGIDeps (super.gi-pango) [nixpkgs.pango] []; | ||
gi-gio = addGIDeps (super.gi-gio) [] []; | ||
gi-atk = addGIDeps (super.gi-atk) [] []; | ||
gi-javascriptcore = addGIDeps (super.gi-javascriptcore) [] []; | ||
gi-gdkpixbuf = addGIDeps (super.gi-gdkpixbuf) [nixpkgs.gdk_pixbuf nixpkgs.gtk3] [nixpkgs.gtk3]; | ||
gi-gdk = addGIDeps (super.gi-gdk) [nixpkgs.gdk_pixbuf nixpkgs.pango nixpkgs.gtk3] [nixpkgs.gtk3]; | ||
gi-soup = addGIDeps (super.gi-soup) [nixpkgs.gdk_pixbuf] [nixpkgs.libsoup]; | ||
gi-gtk = addGIDeps (super.gi-gtk) [nixpkgs.gdk_pixbuf nixpkgs.gtk3] [nixpkgs.gtk3 nixpkgs.atk nixpkgs.pango]; | ||
gi-webkit2 = addGIDeps (super.gi-webkit2) [] [nixpkgs.webkitgtk]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"owner": "reflex-frp", | ||
"repo": "reflex-ghci", | ||
"branch": "release/0.1.5.2", | ||
"branch": "[email protected]", | ||
"private": false, | ||
"rev": "b4d00759c2f855d9aff2bf75b351ccecd519cfe6", | ||
"sha256": "0labgcb9alhw1zid4a5ln561231c96aqab4i9bnk2fbyz2sz53pc" | ||
"rev": "6db4e08be2ed8c8cec7e83d18d02fecfff6a8c5c", | ||
"sha256": "1y1b1i7xdyk3dwq2sz64pwnlacrqw6bv0xhv5cvz7h4yg9yfshm2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
self: _: { | ||
|
||
all-cabal-hashes = self.fetchurl { | ||
url = https://github.com/commercialhaskell/all-cabal-hashes/archive/0830e8b2bb708de5619928a52044a90e9d3dad29.tar.gz; | ||
sha256 = "1w7svsx8lvsp421220xnmh312an09gcqxmik72y28cvxk7zi0375"; | ||
url = https://github.com/commercialhaskell/all-cabal-hashes/archive/05301ee6f2076533bdd2a6b1f0c26d2912f1fe4d.tar.gz; | ||
sha256 = "1v43gg0pm8mr20n5ifh4hgwvxya71rmipfi291wj0hhwssy6zkq2"; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters