Skip to content

Instantly share code, notes, and snippets.

@aswan89
aswan89 / rPackages.nix
Last active April 28, 2019 17:37
reticulate segfault and accompanying detective work
> library(reticulate)
> py_config()
*** caught segfault ***
address 0x8, cause 'memory not mapped'
Traceback:
1: py_run_string_impl(paste0("import sys; sys.path.append('", system.file("python", package = "reticulate"), "')"))
2: initialize_python(required_module, use_environment)
3: ensure_python_initialized()
@aswan89
aswan89 / default.nix
Created July 18, 2017 19:58
example wxwidgets 3.1 nix expression
{stdenv, pkgconfig, gtk3, fetchurl}:
stdenv.mkDerivation {
name = "wxWidgets-3.1.0";
src = fetchurl {
url = https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2;
sha1 = "2170839cfa9d9322e8ee8368b21a15a2497b4f11";
};