Skip to content

Instantly share code, notes, and snippets.

{
allowUnfree = true;
packageOverrides = pkgs_: with pkgs_; {
my_nvim = import ./nvim-config { inherit pkgs ; };
git-config = import ./git-config {
# TODO: how to send nvim instead of my_nvim so the packages are not
# tightly coupled.
inherit (pkgs) stdenv my_nvim;
use_nix
# Usage: use_nix [...]
#
# Load environment variables from `nix-shell`.
# If you have a `default.nix` or `shell.nix` one of these will be used and
# the derived environment will be stored at ./.direnv/env-<hash>
# and symlink to it will be created at ./.direnv/default.
# Dependencies are added to the GC roots, such that the environment remains persistent.
#
# Packages can also be specified directly via e.g `use nix -p ocaml`,
# however those will not be added to the GC roots.

.envrc used by direnv to automatically load the environment using Nix. If you have Nix installed but not direnv, then simply running nix-shell should give you the environment described in shell.nix.

# github.com/liamg/aminal/vendor/github.com/go-gl/glfw/v3.2/glfw
Undefined symbols for architecture x86_64:
"_NSDefaultRunLoopMode", referenced from:
__glfwPlatformPollEvents in _x004.o
__glfwPlatformWaitEvents in _x004.o
__glfwPlatformWaitEventsTimeout in _x004.o
"_OBJC_CLASS_$_NSArray", referenced from:
objc-class-ref in _x004.o
"_OBJC_CLASS_$_NSDate", referenced from:
objc-class-ref in _x004.o
diff -Naur not-generated/.gitignore generated/.gitignore
--- not-generated/.gitignore 1969-12-31 16:00:00.000000000 -0800
+++ generated/.gitignore 2018-11-30 11:35:52.149183398 -0800
@@ -0,0 +1,27 @@
+*.annot
+*.cmo
+*.cma
+*.cmi
+*.a
+*.o

Keybase proof

I hereby claim:

  • I am kalbasit on github.
  • I am ylcodes (https://keybase.io/ylcodes) on keybase.
  • I have a public key ASAmEfNlKYs8pm3I4o6PVIXxrTpHvuBkErmsk1GAutGExQo

To claim this, I am signing this object:

$ nixos-rebuild -I nixpkgs=./external/nixpkgs-stable.nix build
building Nix...
building the system configuration...
error: anonymous function at /yl/code/personal/stories/shabka_pin-nixpkgs/src/github.com/kalbasit/shabka/external/nixpkgs-stable.nix:1:1 called with unexpected argument 'system', at /nix/store/gbmr238hsi0davrk8k6syqqj8824s167-home-manager-235a6617c46b4267d4f67cde9a93dbef0f12bd3f/modules/misc/nixpkgs.nix:52:11
(use '--show-trace' to show detailed location information)
$ nix-shell -I nixpkgs=./external/nixpkgs-stable.nix -p jq --run 'jq --version'
jq-1.5
# This allows overriding nixpkgs by passing `--arg pkgs ...`
{ pkgs ? import ./devtools/lib/nix/nixpkgs.nix {}
, lib ? pkgs.lib
}:
with pkgs;
with lib;
let
pure  λ  bundle  ~/c/k/s/P/src/b/k/k2_web   PLATF-337 ●  ✍ keeptruckin@PLATF-337  SIGINT(2) ↵  INSERT
There was an error accessing `/nix/store/grx8bgdbgwqngn61bc9z4cqq9pkl1aq1-gemfile-and-lockfile/.bundle/config`.
The underlying system error is Errno::EROFS: Read-only file system @ dir_s_mkdir - /nix/store/grx8bgdbgwqngn61bc9z4cqq9pkl1aq1-gemfile-and-lockfile/.bundle
pure  λ  bundle lock  ~/c/k/s/P/src/b/k/k2_web   PLATF-337 ●  ✍ keeptruckin@PLATF-337  32 ↵  INSERT
Following files may not be w