Skip to content

Instantly share code, notes, and snippets.

View EvanMisshula's full-sized avatar

Evan Misshula EvanMisshula

View GitHub Profile
@EvanMisshula
EvanMisshula / release.nix
Created March 3, 2019 16:24
release.nix
contianers-unicode-syntax.nix follows:
{ mkDerivation, base, base-unicode-symbols, containers, stdenv }:
mkDerivation {
pname = "containers-unicode-symbols";
version = "0.3.1.1";
sha256 = "4655f286a2d116cb5f2b89f472df54df739bf904ac8e932b2fd34d3f713e9b31";
libraryHaskellDepends = [ base base-unicode-symbols containers ];
jailbreak = true;
doCheck = false;
###The end of my build log
Run jailbreak-cabal to lift version restrictions on build inputs.
jailbreak-cabal: dieVerbatim: user error (jailbreak-cabal: Error Parsing: file "servant-client-core.cabal" doesn't
exist. Cannot continue.
)
builder for '/nix/store/zg6zidfnyw4b391sfs4jpyxfv0y5s5hl-servant-client-core-0.16.drv' failed with exit code 1
cannot build derivation '/nix/store/pqfbzjs3s34qdfx7x05i4d7ckllqlb3d-servant-client-0.15.drv': 1 dependencies couldn't be built
building '/nix/store/qcpw4waxxk6i98d30h8hhb4gfsi36hzf-unix-time-0.4.5.drv'...
cannot build derivation '/nix/store/jvj1yvk03760s2ijypnaml2swck4qhcs-servant-snap-0.8.2.drv': 1 dependencies couldn't be built
@EvanMisshula
EvanMisshula / bashOutput
Created March 18, 2019 22:45
trying to add hpack to the build products
nix-build --show-trace -A all
error: while evaluating the attribute 'buildCommand' of the derivation 'reflex-project' at /nix/store/pxh6ar7qdnx3w5vhpqpf0d9jr1bxrsy1-source/pkgs/stdenv/generic/make-derivation.nix:177:11:
while evaluating anonymous function at /nix/store/pxh6ar7qdnx3w5vhpqpf0d9jr1bxrsy1-source/lib/attrsets.nix:225:10, called from undefined position:
while evaluating anonymous function at /nix/store/wsyx22606j37gin9nw4rn8zhn1gfdp6p-source/project/default.nix:198:36, called from /nix/store/pxh6ar7qdnx3w5vhpqpf0d9jr1bxrsy1-source/lib/attrsets.nix:225:16:
while evaluating 'optionalString' at /nix/store/pxh6ar7qdnx3w5vhpqpf0d9jr1bxrsy1-source/lib/strings.nix:147:26, called from /nix/store/wsyx22606j37gin9nw4rn8zhn1gfdp6p-source/project/default.nix:198:44:
while evaluating 'concatMapStringsSep' at /nix/store/pxh6ar7qdnx3w5vhpqpf0d9jr1bxrsy1-source/lib/strings.nix:64:33, called from /nix/store/wsyx22606j37gin9nw4rn8zhn1gfdp6p-source/project/default.nix:200:7:
while evaluating anonymous function at /ni
@EvanMisshula
EvanMisshula / nix.conf
Created March 19, 2019 00:21
My nix.conf
substituters = https://cache.nixos.org https://nixcache.reflex-frp.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=
sandbox = false
binary-caches = https://cache.nixos.org https://nixcache.reflex-frp.org
binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=
binary-caches-parallel-connections = 40
@EvanMisshula
EvanMisshula / bash output
Created March 19, 2019 02:22
Linux.hsc:25:10: fatal error: 'sys/inotify.h' file not found
bash-3.2$ nix-build -A all
building '/nix/store/48w16xvg9hxbcs6453a25xq9p6gz49js-cabal2nix-backend.drv'...
installing
*** found package.yaml. Using hpack...
trace: WARNING: ignoring dependency on doctest
these derivations will be built:
/nix/store/dj410wnv0mwya71c1a853455gix22pmj-temporary-1.3.drv
/nix/store/hza6q5xr08pwm165zlmi7fhxjg6m6f3l-mockery-0.3.5.drv
/nix/store/wnjjwywa8k793jr0gi9hr7bg7swnk0qc-unliftio-core-0.1.2.0.drv
@EvanMisshula
EvanMisshula / default.nix
Created March 19, 2019 13:27
default.nix for soap project.....
{ reflex-platform ? import ./reflex-platform {} }:
reflex-platform.project ({ pkgs, ... }: {
packages = {
common = ./common;
backend = ./backend;
frontend = ./frontend;
};
shells = {
@EvanMisshula
EvanMisshula / default.nix
Created April 7, 2019 15:57
my problem building servant snap
{ mkDerivation, aeson, attoparsec, base, base64-bytestring
, bytestring, case-insensitive, containers, digestive-functors
, directory, either, errors, exceptions, filepath, heist, hspec
, hspec-core, hspec-snap, http-api-data, http-client, http-media
, http-types, HUnit, io-streams, lens, map-syntax, mmorph, mtl
, network, network-uri, parsec, process, QuickCheck, servant
, servant-client, snap, snap-core, snap-cors, snap-server, stdenv
, string-conversions, temporary, text, time, transformers, word8
}:
mkDerivation {
@EvanMisshula
EvanMisshula / default-goundhog-ghcjs.nix
Created April 17, 2019 02:09
Ali...I hope you don't regret being so generous with your time....
{ mkDerivation, base, stdenv, template-haskell }:
mkDerivation {
pname = "groundhog-ghcjs";
version = "0.1.0.0";
src = ./.;
libraryHaskellDepends = [ base template-haskell ];
jailbreak = true;
doCheck = false;
homepage = "http://github.com/mightybyte/groundhog-ghcjs";
description = "Groundhog GHCJS compatibility";
app@ted:~/reflex/servant-snap$ nix-build --attr servant-snap release.nix
/etc/host.conf: line 4: bad command `nospoof on'
these derivations will be built:
/nix/store/g9nzcvi5d8g829za30k4jx7602p5h8x8-servant-snap-0.8.1.0.drv
building '/nix/store/g9nzcvi5d8g829za30k4jx7602p5h8x8-servant-snap-0.8.1.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/3v8p0pvcplr3bfvrnh4fyqrqk2ddyl6f-ghc-8.2.2.
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/jxfbrgafj0n8mr2nq6n6jlzl3f25zv3v-servant-snap
This file has been truncated, but you can view the full file.
[{"lastName":"CARTER","firstName":"CHEYENNE","sex":"M","dob":19740512,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000106,"age":46.8,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"HARVALL","firstName":"RAHIM","sex":"M","dob":19740224,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":47,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"GAUSE","firstName":"DAVID","sex":"M","dob":19600801,"ethnicGroup":"non-Hispanic","race":"Black","originalReceptionDate":20000107,"age":60.6,"timeServed":21.2,"modEthRaceF":"non-HispanicBlack","modEthRace":"NH-Black"},{"lastName":"GARCIA","firstName":"JOHANN","sex":"M","dob":19790130,"ethnicGroup":"Hispanic","race":"Other","originalReceptionDate":20000107,"age":42.1,"timeServed":21.2,"modEthRaceF":"HispanicOther","modEthRace":"Hispanic"},{"lastName":"SNYDER","firstName":"CARL","sex":"M","dob":19761212,"ethnicGroup":"non-Hispanic","race":"Bla