summaryrefslogtreecommitdiff
path: root/nix/haskell-overlay.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-04-22 13:45:28 -0700
committerBen Sima <ben@bsima.me>2020-04-22 13:45:28 -0700
commit26280e0f790c244bbc4595d63871f36525028cf0 (patch)
treec2d3dc000ccbb9d1e66a3317f0e8816f67429eed /nix/haskell-overlay.nix
parent9947e692549f2faa0139f701006c2921012ac981 (diff)
Move haskell source overrides into niv
Diffstat (limited to 'nix/haskell-overlay.nix')
-rw-r--r--nix/haskell-overlay.nix43
1 files changed, 12 insertions, 31 deletions
diff --git a/nix/haskell-overlay.nix b/nix/haskell-overlay.nix
index b496cd4..e384b4f 100644
--- a/nix/haskell-overlay.nix
+++ b/nix/haskell-overlay.nix
@@ -1,43 +1,24 @@
-self: super:
+_: nixpkgs:
-let
- claySrc = super.pkgs.fetchFromGitHub {
- owner = "sebastiaanvisser";
- repo = "clay";
- rev = "cc7729b1b42a79e261091ff7835f7fc2a7ae3cee";
- sha256 = "1vd67976lvi5l4qq18zy6j44apynkl44ps04p8vwfx4gzr895dyp";
- };
- jsaddleSrc = super.pkgs.fetchFromGitHub {
- owner = "ghcjs";
- repo = "jsaddle";
- rev = "1e39844";
- sha256 = "1qrjrjagmrrlcalys33636w5cb67db52i183masb7xd93wir8963";
- };
- misoSrc = super.pkgs.fetchFromGitHub {
- owner = "dmjio";
- repo = "miso";
- rev = "1.5";
- sha256 = "00al7gw760vzzlqpf035k4n4li0rdymcjpxn184z9nc4m92cjv9z";
- };
-in {
- haskell = super.haskell // {
- packages = super.haskell.packages // {
- ghc865 = super.haskell.packages.ghc865.override (old: {
- overrides = with super.pkgs.haskell.lib; self: super: {
- clay = self.callCabal2nix "clay" claySrc {};
- miso = self.callCabal2nix "miso" misoSrc {};
+{
+ haskell = nixpkgs.haskell // {
+ packages = nixpkgs.haskell.packages // {
+ ghc865 = nixpkgs.haskell.packages.ghc865.override (old: {
+ overrides = with nixpkgs.pkgs.haskell.lib; self: super: {
+ clay = self.callCabal2nix "clay" nixpkgs.sources.clay {};
+ miso = self.callCabal2nix "miso" nixpkgs.sources.miso {};
wai-middleware-metrics = dontCheck super.wai-middleware-metrics;
};
});
- ghcjs = super.haskell.packages.ghcjs.override (old: {
- overrides = with super.haskell.lib; self: super: {
+ ghcjs = nixpkgs.haskell.packages.ghcjs.override (old: {
+ overrides = with nixpkgs.haskell.lib; self: super: {
QuickCheck = dontCheck super.QuickCheck;
base-compat-batteries = dontCheck super.http-types;
clay = dontCheck (self.callCabal2nix "clay" claySrc {});
comonad = dontCheck super.comonad;
- jsaddle-warp = dontCheck (self.callCabal2nix "jsaddle-warp" "${jsaddleSrc}/jsaddle-warp" {});
+ jsaddle-warp = dontCheck (self.callCabal2nix "jsaddle-warp" "${nixpkgs.sources.jsaddle}/jsaddle-warp" {});
http-types = dontCheck super.http-types;
- miso = self.callCabal2nix "miso" misoSrc {};
+ miso = self.callCabal2nix "miso" nixpkgs.sources.miso {};
network-uri= dontCheck super.network-uri;
scientific = dontCheck super.scientific; # takes forever
servant = dontCheck super.servant;