Skip to content

Instantly share code, notes, and snippets.

{ pkgs }:
{
packageOverrides = super: let self = super.pkgs; in
{
haskellPackages = super.haskellPackages.override {
overrides = with pkgs.haskell.lib; self: super: {
numhask = dontCheck self.callPackage /Users/dom/Dropbox/Private/NumMethHaskell/numhask {};
numhask-range = self.callPackage /Users/dom/Dropbox/Private/NumMethHaskell/numhask-range {};
};
{ mkDerivation, base, Chart, Chart-cairo, colour
, data-accessor, data-default-class, diagrams-lib, lens, linear
, parallel, parsec, primitive, stdenv, template-haskell, vector
, vector-space
}:
mkDerivation {
pname = "numeric-ode";
doCheck = false;
version = "0.1.0.1";
sha256 = "";
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE InstanceSigs #-}
@idontgetoutmuch
idontgetoutmuch / default.nix
Created January 27, 2018 20:36
R package rgdal fails to install via nix
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in with pkgs; {
myProject = stdenv.mkDerivation {
name = "myProject";
version = "1";
src = if pkgs.lib.inNixShell then null else nix;
buildInputs = with rPackages; [
@idontgetoutmuch
idontgetoutmuch / shell.nix
Created February 1, 2018 12:37 — forked from nmattia/shell.nix
IHaskell and R nix shell file
let
# Use pinned packages
_nixpkgs = import <nixpkgs> {};
nixpkgs = _nixpkgs.fetchFromGitHub
({
owner = "nmattia";
repo = "nixpkgs";
rev = "02359c639193103812f7356564326556cbb41ca4";
sha256= "1rg0czkxqynycw23v0dmk0vd2v17d6v3yr06bg23wqwpm3b5z0nd";
});
let pkgs = import <nixpkgs> {}; in
pkgs.nixBufferBuilders.withPackages [ pkgs.R ]
@idontgetoutmuch
idontgetoutmuch / gist:1c647e7b207dd5166155775d1213db88
Created February 4, 2018 18:20
/nix/store/43r2rms3j5y9qclwd4kipbvribkjbr4d-dir-locals.el
(require 'inherit-local "/nix/store/5pgm72fjmkzi09qncvffx18dr9957lds-emacs-inherit-local-1.1.1/share/emacs/site-lisp/elpa/inherit-local-1.1.1/inherit-local.elc")
; Only set up nixpkgs buffer handling when we have some buffers active
(defvar nixpkgs--buffer-count 0)
(when (eq nixpkgs--buffer-count 0)
(make-variable-buffer-local 'nixpkgs--is-nixpkgs-buffer)
; When generating a new temporary buffer (one whose name starts with a space), do inherit-local inheritance and make it a nixpkgs buffer
(defun nixpkgs--around-generate (orig name)
(if (and nixpkgs--is-nixpkgs-buffer (eq (aref name 0) ?\s))
@idontgetoutmuch
idontgetoutmuch / jni.log
Last active February 19, 2018 11:50
hmatrix.log
Configuring hmatrix-0.18.1.0...
Preprocessing library for hmatrix-0.18.1.0..
Building library for hmatrix-0.18.1.0..
[ 1 of 27] Compiling Internal.Vector ( src/Internal/Vector.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/Vector.o )
[ 2 of 27] Compiling Internal.Devel ( src/Internal/Devel.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/Devel.o )
[ 3 of 27] Compiling Internal.Vectorized ( src/Internal/Vectorized.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/Vectorized.o )
[ 4 of 27] Compiling Internal.Matrix ( src/Internal/Matrix.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/Matrix.o )
[ 5 of 27] Compiling Internal.ST ( src/Internal/ST.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/ST.o )
[ 6 of 27] Compiling Internal.IO ( src/Internal/IO.hs, .stack-work/dist/x86_64-osx-nix/Cabal-2.0.1.0/build/Internal/IO.o )
[ 7 of 27] Compiling Internal.Element ( src/Internal/Element.hs, .stack-work/dist/x86_64-osx-nix/C
{ fetchurl, fetchpatch, stdenv }:
stdenv.mkDerivation rec {
name = "gsl-2.4";
src = fetchurl {
url = "mirror://gnu/gsl/${name}.tar.gz";
sha256 = "16yfs5n444s03np1naj6yp1fsysd42kdscxzkg0k2yvfjixx0ijd";
};
CFLAGS = "-DDEBUG";
{ nixpkgs ? import <nixpkgs> { overlays = [(self: super: {gsl = super.gsl.overrideAttrs (o: {CFLAGS = "-DDEBUG";});})]; }
, compiler ? "ghc822"
, doBenchmark ? false }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, ad, array, base, bytestring, cassava, containers
, datasets, diagrams-lib, diagrams-rasterific, foldl, Frames, ghc-prim, gsl