Skip to content

Instantly share code, notes, and snippets.

@idontgetoutmuch
Created June 21, 2020 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idontgetoutmuch/4d8bf2f598919fc10a3f1198157dbce1 to your computer and use it in GitHub Desktop.
Save idontgetoutmuch/4d8bf2f598919fc10a3f1198157dbce1 to your computer and use it in GitHub Desktop.
let
sundialsOverlay = self: super:
{
sundials1 = self.callPackage ./CustomSundials { };
};
myHaskellPackageOverlay = self: super: {
myHaskellPackages = super.haskellPackages.override {
overrides = hself: hsuper: rec {
tasty-golden =
let newTastyGoldenSrc = builtins.fetchGit {
url = "https://github.com/feuerbach/tasty-golden.git";
rev = "500d828f683bd84eae89beaa43f577a64e41faf5";
};
tg = hself.callCabal2nix "tasty-golden" newTastyGoldenSrc {};
in
super.haskell.lib.dontCheck tg;
};
};
};
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/20.03.tar.gz";
sha256 = "0182ys095dfx02vl2a20j1hz92dx3mfgz2a6fhn31bqlp1wa8hlq";
};
in
{ pkgs ? import nixpkgs { overlays = [ sundialsOverlay myHaskellPackageOverlay ]; } }:
let
haskellPackages = pkgs.myHaskellPackages;
in
haskellPackages.callPackage ./default.nix {
klu = pkgs.suitesparse;
suitesparseconfig = pkgs.suitesparse;
sundials_arkode = pkgs.sundials1;
sundials_cvode = pkgs.sundials1;
sundials_sunlinsolklu = pkgs.sundials1;
sundials_sunmatrixsparse = pkgs.sundials1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment