Skip to content

Instantly share code, notes, and snippets.

let
pkgs = import ../pkgs.nix;
overlay = sel: sup: {
haskell = sup.haskell // {
packages = sup.haskell.packages // {
ghc864 = sup.haskell.packages.ghc864.override {
overrides = self: super: {
my-random-fu-multivariate = self.callHackage ./pkgs/random-fu-multivariate { };
my-cmaes = sel.haskell.lib.dontCheck (self.callPackage ./pkgs/cmaes { });
};
let
pkgs = import ../pkgs.nix;
haskellOverlay = hself: hsuper: {
my-random-fu-multivariate = hself.callPackage ./pkgs/random-fu-multivariate { };
};
in import "${pkgs.ihaskell}/release.nix" {
compiler = "ghc864";
nixpkgs = import pkgs.nixpkgs { overlays = [ haskellOverlay ]; };
packages = self: with self; [ my-random-fu-multivariate ];
self: super:
let
pythonOverlay = pself: psuper:
{
sundials_3_lapack = pself.callPackage ./pkgs/sundials { };
myScikits-odes = pself.callPackage ./pkgs/scikits-odes { };
};
haskellOverlay = hself: hsuper:
{
my-random-fu-multivariate = hself.callPackage ./pkgs/random-fu-multivariate { };
{ compiler ? "ghc864"
, nixpkgs ? import <nixpkgs> {}
, packages ? (_: [])
, pythonPackages ? (_: [])
, rtsopts ? "-M3g -N2"
, systemPackages ? (_: [])
}:
import (./release.nix) { inherit compiler nixpkgs packages pythonPackages rtsopts systemPackages; }
self: super:
let
pythonOverlay = pself: psuper:
{
sundials_3_lapack = pself.callPackage ./pkgs/sundials { };
myScikits-odes = pself.callPackage ./pkgs/scikits-odes { };
};
haskellOverlay = hself: hsuper:
{
my-random-fu-multivariate = hself.callPackage ./pkgs/random-fu-multivariate { };
# self: super:
# {
# mySundials = super.callPackage ./pkgs/sundials { };
# myScikits-odes = super.pythonPackages.callPackage ./pkgs/scikits-odes { sundials_3_lapack = self.mySundials; };
# }
self: super:
let
pythonOverlay = pself: psuper:
self: super:
{
mySundials = super.callPackage ./pkgs/sundials { };
myScikits-odes = super.callPackage ./pkgs/scikits-odes { };
}
@idontgetoutmuch
idontgetoutmuch / stack.yaml
Created April 12, 2019 12:29
Stack -> cabal new
extra-deps:
- inline-r-0.9.2
- vector-0.12.0.1
- Frames-0.6.1
- vinyl-0.11.0
- discrimination-0.3
- inline-c-0.6.1.0
- git: https://github.com/idontgetoutmuch/Kalman.git
commit: 4926787e24fb122c34b2ad70fe402d6d71a547c1
- git: https://github.com/idontgetoutmuch/random-fu-multivariate.git
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE QuasiQuotes #-}
module Main (main) where
import qualified Language.R as R
{ pkgs ? import <nixpkgs> {}, compiler ? "ghc822", doBenchmark ? false }:
let
f = { mkDerivation, haskell, base, foldl, Frames, fuzzyset
, inline-r, integration, lens, libintlOrEmpty
, pandoc-types, plots
, diagrams-rasterific
, diagrams
, diagrams-svg