Skip to content

Instantly share code, notes, and snippets.

View freeman42x's full-sized avatar
🎯
Twitch streaming work on open source projects, looking for contributors

freeman42x freeman42x

🎯
Twitch streaming work on open source projects, looking for contributors
View GitHub Profile
@freeman42x
freeman42x / shell.sh
Created October 16, 2019 16:27
Miso live reload entr error
[nix-shell:~/Forks/miso/sample-app]$ ag -l | entr 'cabal v1-build'
entr: exec cabal v1-build: No such file or directory
[nix-shell:~/Forks/miso/sample-app]$ which cabal
/run/current-system/sw/bin/cabal
@freeman42x
freeman42x / shell.sh
Created October 14, 2019 19:56
ghc-pkg list
[neo@nixos:~/Sources/miso/sample-app]$ nix-shell --run 'ghc-pkg list' --pure
WARNING: there are broken packages. Run 'ghc-pkg check' for more details.
/nix/store/mvb129cv2siw75jcvpzhwkx2afbviayc-ghc-8.6.5-with-packages/lib/ghc-8.6.5/package.conf.d
Cabal-2.4.0.1
QuickCheck-2.12.6.1
SHA-1.6.4.4
StateVar-1.1.1.1
adjunctions-4.4
aeson-1.4.2.0
ansi-terminal-0.8.2
@freeman42x
freeman42x / shell.sh
Created October 14, 2019 19:53
ghc-pkg list
/nix/store/mvb129cv2siw75jcvpzhwkx2afbviayc-ghc-8.6.5-with-packages/lib/ghc-8.6.5/package.conf.d
Cabal-2.4.0.1
QuickCheck-2.12.6.1
SHA-1.6.4.4
StateVar-1.1.1.1
adjunctions-4.4
aeson-1.4.2.0
ansi-terminal-0.8.2
ansi-wl-pprint-0.6.8.2
appar-0.1.8
@freeman42x
freeman42x / shell.sh
Created October 14, 2019 18:05
cabal v2 ln
[nix-shell:~/Projects/everyone-connect/dist-newstyle/build/x86_64-linux/ghc-8.6.5/everyone-connect-0.1.0.0]$ ls
setup-config x
[nix-shell:~/Projects/everyone-connect/dist-newstyle/build/x86_64-linux/ghc-8.6.5/everyone-connect-0.1.0.0]$ cd x/everyone-connect/
[nix-shell:~/Projects/everyone-connect/dist-newstyle/build/x86_64-linux/ghc-8.6.5/everyone-connect-0.1.0.0/x/everyone-connect]$ ls
build cache package.conf.inplace setup-config
@freeman42x
freeman42x / shell.sh
Created October 13, 2019 23:38
node-azure-cli-0.10.20.drv refferers
[neo@nixos:~]$ nix-store -q --referrers /nix/store/7lb1phyrf62scp1v0950f47vm51cl1l4-node-azure-cli-0.10.20.drv
/nix/store/5v1ylyyz1jmwd2acdbqhi4gpry0bi5ib-system-path.drv
/nix/store/gicpi5id5z1qsaws8f5ifnvdppqnckw9-system-path.drv
/nix/store/m7894ql0xrjrxk8z7fkcf6aqslj9irrf-system-path.drv
/nix/store/mpl9mji7w4dm5gicrnp2lv7254li449h-system-path.drv
/nix/store/pwf6z00v29h8yv9jcrj21mgxpkn86x6l-system-path.drv
/nix/store/ybfff3jf2vqn3bh5r0m8b6f9ya50gq4j-system-path.drv
@freeman42x
freeman42x / configuration.nix
Created October 13, 2019 22:14
nixos 19.09 failed build
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
@freeman42x
freeman42x / configuration.nix
Created October 13, 2019 21:41
nixos 19.09 failed build
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
unstableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
../src/fibers.cc:829:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(fibers, init)
^~~~~~~~~~~
CC [M] /build/kernel/nvidia-uvm/uvm8_pascal.o
Haddock coverage:
100% ( 5 / 5) in 'System.Console.Terminal.Size'
make: *** [fibers.target.mk:108: Release/obj.target/fibers/src/fibers.o] Error 1
make: Leaving directory '/nix/store/h1ir0zz2ql2z623y5px1z1yk3ln9h8zm-node-azure-cli-0.10.20/lib/node_modules/azure-cli/node_modules/fibers/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
@freeman42x
freeman42x / shell.sh
Created October 13, 2019 21:08
nixos upgrade to 19.09
In file included from /nix/store/9xhmj7mkccaa7w2pkq5927xdp0i2jx7d-node-sources/deps/v8/include/v8.h:26,
from /nix/store/9xhmj7mkccaa7w2pkq5927xdp0i2jx7d-node-sources/src/node.h:63,
from ../src/coroutine.h:1,
from ../src/fibers.cc:1:
/nix/store/9xhmj7mkccaa7w2pkq5927xdp0i2jx7d-node-sources/deps/v8/include/v8.h:2892:28: note: declared here
explicit Utf8Value(Local<v8::Value> obj));
^~~~~~~~~
/nix/store/9xhmj7mkccaa7w2pkq5927xdp0i2jx7d-node-sources/deps/v8/include/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
@freeman42x
freeman42x / shell.nix
Created October 11, 2019 12:54
nix-shell -p zlib to shell.nix
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }:
let
inherit (nixpkgs) pkgs;
f = { mkDerivation, base, directory, stdenv, text, turtle, zlib }:
mkDerivation {
pname = "haskell-editor-setup";
version = "0.1.0.0";