This file contains hidden or 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
| { 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 {}; | |
| }; |
This file contains hidden or 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
| { 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 = ""; |
This file contains hidden or 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
| {-# OPTIONS_GHC -Wall #-} | |
| {-# LANGUAGE ConstraintKinds #-} | |
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE DeriveGeneric #-} | |
| {-# LANGUAGE DeriveTraversable #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE InstanceSigs #-} |
This file contains hidden or 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 | |
| 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; [ |
This file contains hidden or 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 | |
| # Use pinned packages | |
| _nixpkgs = import <nixpkgs> {}; | |
| nixpkgs = _nixpkgs.fetchFromGitHub | |
| ({ | |
| owner = "nmattia"; | |
| repo = "nixpkgs"; | |
| rev = "02359c639193103812f7356564326556cbb41ca4"; | |
| sha256= "1rg0czkxqynycw23v0dmk0vd2v17d6v3yr06bg23wqwpm3b5z0nd"; | |
| }); |
This file contains hidden or 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 pkgs = import <nixpkgs> {}; in | |
| pkgs.nixBufferBuilders.withPackages [ pkgs.R ] |
This file contains hidden or 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
| (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)) |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| { fetchurl, fetchpatch, stdenv }: | |
| stdenv.mkDerivation rec { | |
| name = "gsl-2.4"; | |
| src = fetchurl { | |
| url = "mirror://gnu/gsl/${name}.tar.gz"; | |
| sha256 = "16yfs5n444s03np1naj6yp1fsysd42kdscxzkg0k2yvfjixx0ijd"; | |
| }; | |
| CFLAGS = "-DDEBUG"; |
This file contains hidden or 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
| { 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 |