Created
June 21, 2020 07:59
-
-
Save idontgetoutmuch/4d8bf2f598919fc10a3f1198157dbce1 to your computer and use it in GitHub Desktop.
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
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