1
1
mirror of https://github.com/coot/free-category.git synced 2024-11-23 09:55:43 +03:00
free-category/nix/nixpkgs.nix

39 lines
1.6 KiB
Nix
Raw Normal View History

{ compiler ? "ghc865" }:
2018-10-22 01:09:31 +03:00
with builtins;
let
rev = if compiler == "ghc802"
|| compiler == "ghc822"
|| compiler == "ghc844"
then "722fcbbb80b2142583e9266efe77992f8e32ac4c"
else "81760f32353fa7f309a49fda17d90f43ac1e9a42";
2018-10-22 01:09:31 +03:00
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
url802 = "https://github.com/NixOS/nixpkgs/archive/${rev802}.tar.gz";
2018-10-22 01:09:31 +03:00
config =
{ packageOverrides = super:
let self = super.pkgs;
lib = super.haskell.lib;
overrides = self: super: {
free-algebras = super.callPackage ./free-algebras.nix {};
};
in {
haskell = super.haskell // {
packages = super.haskell.packages // {
2018-11-11 15:15:03 +03:00
ghc844 = super.haskell.packages.ghc844.override { inherit overrides; };
2018-10-22 01:09:31 +03:00
ghc822 = super.haskell.packages.ghc822.override { inherit overrides; };
2018-10-23 00:46:22 +03:00
ghc802 = super.haskell.packages.ghc802.override {
overrides = self: super: overrides self super // {
ansi-terminal = super.callPackage ./ansi-terminal-0.6.3.1.nix {};
async = super.callPackage ./async-2.1.1.1.nix {};
lifted-async = super.callPackage ./lifted-async-0.9.3.3.nix {};
exceptions = super.callPackage ./exceptions-0.8.3.nix {};
stm = super.callPackage ./stm-2.4.5.1.nix {};
concurrent-output = super.callPackage ./concurrent-output-1.9.2.nix {};
};
};
2018-10-22 01:09:31 +03:00
};
};
};
};
nixpkgs = import (fetchTarball { inherit url; }) { inherit config; };
in nixpkgs