Skip to content

Instantly share code, notes, and snippets.

View hamishmack's full-sized avatar

Hamish Mackenzie hamishmack

View GitHub Profile
@hamishmack
hamishmack / gist:94cf538f16afda3151af26bc078525f8
Created April 26, 2020 12:58
file-embed cross compile error
querying info about '/nix/store/cj7gf1734a7xgywhnj6ry7aq6s72ar9p-git-ls-files' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/cj7gf1734a7xgywhnj6ry7aq6s72ar9p.narinfo'...
querying info about '/nix/store/cj7gf1734a7xgywhnj6ry7aq6s72ar9p-git-ls-files' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/cj7gf1734a7xgywhnj6ry7aq6s72ar9p.narinfo'...
building '/nix/store/x5cik0hi1br3amh2ni8wb4hnify0i1ry-git-ls-files.drv'...
trace: Get `stack-sha256` with `nix-hash --base32 --type sha256 /nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs/`
querying info about '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/1ckdby0dv7rmwzgcvqrqniwngnxzka3w.narinfo'...
querying info about '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/1ckdby0dv7rmwzgcvqrqniwngnxzka3w.narinfo'...
@hamishmack
hamishmack / leksah.log
Created July 13, 2018 09:14
Normal leksah startup
Now updating system metadata ...
Finished updating system metadata
Now loading metadata ...
Finished loading metadata
Now updating workspace metadata ...
Finished updating workspace metadata
~/haskell/leksah$ du -sch $(nix-store -qR $(which leksah-ghc843))
9.3M /nix/store/xn55wd7nimdi085kji54mrrqqnqvcasz-Libsystem-osx-10.11.6
1.1M /nix/store/9gghkkqhn6v7dvpf2319qvrxkkw03vwr-bash-4.4-p19
240M /nix/store/9imzmgcmin4ika6qhqidkrllci4gy201-ghc-8.4.3-doc
2.0M /nix/store/cswa74v3f5m772xjma751956r7c8cv52-primitive-0.6.3.0-doc
12M /nix/store/0c512narhaw95csgvb8vhpb4z21gw0nm-vector-0.12.0.1-doc
800K /nix/store/1nn9qbv82qdcmqz62lvshszk22f1x7nm-hashable-1.2.7.0-doc
516K /nix/store/wgs4a1nnasrg6mp1mcjhq9zqfxc9fmvl-random-1.1-doc
412K /nix/store/0fh80sv8d9vizgf8w1lcp2x4cl3xmhh3-uuid-types-1.0.3-doc
248K /nix/store/8s9rf3pjk2w023qaq2q5xaarcw1jmv0h-dlist-0.8.0.4-doc
@hamishmack
hamishmack / Devel.hs
Last active April 14, 2018 06:38
Running jsaddle and your applications server on the same port
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Devel (
test
@hamishmack
hamishmack / gist:30c7b42f2ef36f818dc42faf2dc6f041
Created February 22, 2018 20:58
servant/reflex setup example
let
reflex-platform = import ((import <nixpkgs> {}).pkgs.fetchFromGitHub {
owner = "reflex-frp";
repo = "reflex-platform";
rev = "55bddde319d7c8f6edcc80941926c611098f0875";
sha256 = "0680vapmfwbj308mcg4fgr60zjb7j6in2p3lppzsd7ydlfhnsbvv";
}) {};
nixpkgs = reflex-platform.nixpkgs;
servant-auth-github = nixpkgs.fetchFromGitHub {
owner = "hamishmack";