Skip to content

Instantly share code, notes, and snippets.

remote:
remote: -- While building package hmatrix-0.17.0.2 using:
remote: /app/tmp/cache/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.0.0 configure --with-ghc=/app/tmp/cache/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc --with-ghc-pkg=/app/tmp/cache/.stack/programs/x86_64-linux/ghc-8.0.1/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/pkgdb --libdir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/lib --bindir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/bin --datadir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/share --libexecdir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/libexec --sysconfdir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/etc --docdir=/app/tmp/cache/.stack/snapshots/x86_64-linux/lts-7.14/8.0.1/doc/hmatrix-0.17.0.2 --htmldir=/app/tmp/cache/.stack/snapsho
@ericbmerritt
ericbmerritt / tmux.conf
Created September 17, 2016 00:36
tmux.conf
set-option -g prefix 'C-\'
bind-key 'C-\' last-window
@ericbmerritt
ericbmerritt / cd-acme.bash
Created October 15, 2015 20:42
customized cd command for 'win' shell of the acme editor
#
# Fix the cd command for use with acme
#
cd() {
builtin cd $1 && awd
}
@ericbmerritt
ericbmerritt / opam.bash
Created October 14, 2015 00:01
Make opam behave correctly on a dumb terminal
#
# Make sure opam never colorizes
#
opam () {
local direct_opam
if hash /usr/local/bin/opam 2> /dev/null; then
direct_opam=/usr/local/bin/opam
elif hash /usr/bin/opam 2> /dev/null; then
direct_opam=/usr/bin/opam
elif hash /bin/opam 2> /dev/null; then
module Default =
struct
module Log : Nixy_log.S
type error = [ `Config_failure of String.t
| `Config_doesnt_exist of String.t
| `Read_exception of Exn.t ] with sexp
type github_info = {owner: String.t; username: String.t; token: String.t} with sexp
@ericbmerritt
ericbmerritt / nixy.ml
Created June 15, 2015 18:47
Error Problems in module definition
open Core.Std
open Core_extended.Std
open Async.Std
open Deferred.Result.Monad_infix
module Log = Nixy_log.Make(Nixy_log.Syslog)
module Config = Config.Make(Log)
{ stdenv, fetchzip, pythonPackages, groff }:
pythonPackages.buildPythonPackage rec {
name = "awscli-${version}";
version = "1.7.32";
namePrefix = "";
src = fetchzip {
url = "https://github.com/aws/aws-cli/archive/${version}.tar.gz";
sha256 = "0qly1bcfpzj19vw20qwfp9dxc12l829qi5qj9zik0nkcr3gf02d6";
--- admin/awscli ‹master* M?› » nix-env -i awscli
replacing old ‘awscli-1.7.29’
installing ‘awscli-1.7.32’
these derivations will be built:
/nix/store/5ma5ba64la0lsfxmv9kxf5k6l37cnxkc-1.7.32.tar.gz.drv
/nix/store/88n4y5ci56d18n59nc3mvlrrdl3lx8q0-awscli-1.7.32.drv
building path(s) ‘/nix/store/1sia0z2hkp71qjbnz9d8iq3lz50zlgjm-1.7.32.tar.gz’
trying https://github.com/aws/aws-cli/archive/1.7.32.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
let exec
: log:Nixy_log.t -> ?working_dir:String.t -> ('a, unit, string, 'ret) format4 ->
(Unit.t, Exn.t) Deferred.Result.t =
fun ~log ?working_dir shcmd ->
Async_shell.sh_lines_stream ?working_dir shcmd
>>= fun stream ->
Monitor.try_with (fun () -> log_stream log stream)
-----------------
@ericbmerritt
ericbmerritt / herelib.nix
Last active August 29, 2015 14:21
buildOcaml.nix
{ stdenv, ocaml, findlib, camlp4 }:
{ name, version, buildInputs ? [],
createFindlibDestdir ? true,
dontStrip ? true,
minimumSupportedOcamlVersion ? null,
meta ? {}, ...
}@args:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;