Skip to content

Instantly share code, notes, and snippets.

# 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

.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.

# 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.
use_nix
{
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;
{stdenv, brightnessctl, i3lock, rofi, termite, libnotify}:
stdenv.mkDerivation rec {
name = "sway-config";
phases = [ "installPhase" ];
src = ./.;
installPhase = ''
{stdenv, less}:
stdenv.mkDerivation rec {
name = "less-config";
phases = [ "buildPhase" "installPhase" ];
src = ./.;
buildInputs = [ less ];
$ /home/kalbasit/.nix-profile/bin/chromium --user-data-dir="${HOME}/.config/chromium/profiles/personal"
[4865:4865:0704/224814.314296:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /nix/store/9fwzw4f91l4di5s5lfggvf51mk152y6c-chromium-67.0.3396.87-sandbox/bin/__chromium-suid-sandbox is owned by root and has mode 4755.
#0 0x55ae3411e67e base::debug::StackTrace::StackTrace()
#1 0x55ae34138a57 logging::LogMessage::~LogMessage()
#2 0x55ae3551d6a5 sandbox::SetuidSandboxHost::PrependWrapper()
#3 0x55ae32d02ee7 content::ZygoteHostImpl::LaunchZygote()
#4 0x55ae33d973de content::(anonymous namespace)::LaunchZygoteHelper()
#5 0x55ae32d016ce content::ZygoteCommunication::Init()
#6 0x55ae32d7ed0f content::CreateGenericZygote()
#7 0x55ae33d97b5d content::ContentMainRunnerImpl::Initialize()
$ ls -la /nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib/lib/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Dec 31 1969 /nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib/lib/libstdc++.so.6 -> libstdc++.so.6.0.24
$ nix-env -i /nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib
installing 'gcc-7.3.0-lib'
building '/nix/store/wr003rnxmahdjbkwd5anlpzfac40d7dj-user-environment.drv'...
created 438 symlinks in user environment
$ ldd /home/kalbasit/.cache/bazel/_bazel_kalbasit/8bf050cfd51ca75fdd52264b88089d84/external/nodejs/node/bin/node
linux-vdso.so.1 (0x00007fffd31be000)
libdl.so.2 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libdl.so.2 (0x00007fba39eac000)
librt.so.1 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/librt.so.1 (0x00007fba39ca4000)
{
allowUnfree = true;
firefox = {
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
};
chromium = {
enablePepperFlash = true;