Skip to content

Instantly share code, notes, and snippets.

{ mkDerivation, base, blas-ffi, blaze-html, boxes, ChasingBottoms
, comfort-array, data-ref, deepseq, fixed-length
, guarded-allocation, gfortran, hyper, lapack-ffi, lazyio, liblapack, monoid-transformer
, netlib-ffi, non-empty, QuickCheck, quickcheck-transformer, random
, semigroups, stdenv, text, tfp, transformers, unique-logic-tf
, utility-ht
}:
mkDerivation {
pname = "lapack";
version = "0.3.1";
{ mkDerivation, base, blas-ffi, blaze-html, boxes, ChasingBottoms
, comfort-array, data-ref, deepseq, fixed-length
, guarded-allocation, gfortran, hyper, lapack-ffi, lazyio, libiconv, liblapack, monoid-transformer
, netlib-ffi, non-empty, QuickCheck, quickcheck-transformer, random
, semigroups, stdenv, text, tfp, transformers, unique-logic-tf
, utility-ht
}:
mkDerivation {
pname = "lapack";
version = "0.3.1";
sundials@sundials:~/outsidenix$ cabal new-test -v3 lapack
File monitor 'config' unchanged.
this build was affected by the following (project) config files:
- /home/sundials/outsidenix/cabal.project
File monitor 'improved-plan' unchanged.
Installed ChasingBottoms-1.3.1.6 (ChasingBottoms-1.3.1.6-795c20e53f73d44e99622de5f070073d2aa26ca4c0c910a68726dbb76b3a4800)
QuickCheck-2.13.2-92fb6a3cde3717ac8393077e1c6e3c3c6eaccfe5733319089ac91a4b791e9464
base-4.12.0.0
containers-0.6.0.1
mtl-2.2.2
@idontgetoutmuch
idontgetoutmuch / default.nix
Created August 27, 2019 09:18
A broken haskell package in nix
{ mkDerivation, base, bytestring, cassava, Chart, Chart-diagrams
, clock, containers, deepseq, diagrams-cairo, diagrams-lib
, diagrams-rasterific, hmatrix, hspec, inline-c, lens
, optparse-applicative, plots, split, stdenv, sundials
, template-haskell, vector
}:
mkDerivation {
pname = "hmatrix-sundials";
version = "0.20.1.0";
src = ./.;
@idontgetoutmuch
idontgetoutmuch / default.nix
Created August 28, 2019 10:25
pkg config generation
{ stdenv, fetchurl, gfortran }:
stdenv.mkDerivation rec {
name = "blas-${version}";
version = "3.8.0";
src = fetchurl {
url = "http://www.netlib.org/blas/${name}.tgz";
sha256 = "1s24iry5197pskml4iygasw196bdhplj0jmbsb9jhabcjqj2mpsm";
};
let
default_nixpkgs = (import <nixpkgs> {}).fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "2797ddee7ddebbb1292ea7673c42d77bc82b8515";
sha256 = "1gym77dlfpvflv6l5iq7nq5cqzlxw29pw6gv904s1qd88hw3y5rp";
};
in
{ nixpkgs ? default_nixpkgs
let
pkgs = {
ihaskell = builtins.fetchTarball {
url = "https://github.com/gibiansky/IHaskell/tarball/bb2500c448c35ca79bddaac30b799d42947e8774";
sha256 = "1n4yqxaf2xcnjfq0r1v7mzjhrizx7z5b2n6gj1kdk2yi37z672py";
};
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/tarball/49dc8087a20e0d742d38be5f13333a03d171006a";
sha256 = "1fdnqm4vyj50jb2ydcc0nldxwn6wm7qakxfhmpf72pz2y2ld55i6";
};
@idontgetoutmuch
idontgetoutmuch / default.nix
Created August 30, 2019 15:47
Haskell Package Set?
let
pkgs = {
ihaskell = builtins.fetchTarball {
url = "https://github.com/gibiansky/IHaskell/tarball/bb2500c448c35ca79bddaac30b799d42947e8774";
sha256 = "1n4yqxaf2xcnjfq0r1v7mzjhrizx7z5b2n6gj1kdk2yi37z672py";
};
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs-channels/tarball/49dc8087a20e0d742d38be5f13333a03d171006a";
sha256 = "1fdnqm4vyj50jb2ydcc0nldxwn6wm7qakxfhmpf72pz2y2ld55i6";
};
@idontgetoutmuch
idontgetoutmuch / shell.nix
Created September 1, 2019 11:27
R kernel jupyter nix
with import <nixpkgs> {};
let
my-R-packages = with rPackages; [ ggplot2 dplyr xts ];
R-with-my-packages = rWrapper.override{ packages = with rPackages; my-R-packages ++ [ JuniperKernel ]; };
jupyter-R-kernel = stdenv.mkDerivation {
name = "jupyter-R-kernel";
buildInputs = [ pythonPackages.notebook R-with-my-packages ];
unpackPhase = ":";
installPhase = ''
export HOME=$TMP
@idontgetoutmuch
idontgetoutmuch / output.txt
Created September 6, 2019 13:42
-p vs -E
sundials@sundials:~/chebApprox$ nix-shell -E 'with import <nixpkgs> { config.allowUnfree = true; config.allowBroken = true; }; haskellPackages.ghcWithPackages (pkgs: [pkgs.accelerate])'
[nix-shell:~/chebApprox]$ ghci
GHCi, version 8.6.5: http://www.haskell.org/ghc/ :? for help
Prelude> import Data.Array.Accelerate
<no location info>: error:
Could not find module ‘Data.Array.Accelerate’
It is not a module in the current program, or in any known package.
Prelude> :q