Skip to content

Instantly share code, notes, and snippets.

View mnacamura's full-sized avatar

NAKAMURA Mitsuhiro mnacamura

  • Hokkaido, Japan
View GitHub Profile
@mnacamura
mnacamura / MbedTLS.jl.patch
Created February 12, 2018 07:37
Julia in nixpkgs: an impure road to IJulia
diff --git a/REQUIRE b/REQUIRE
index a7c2269..597a7cf 100644
--- a/REQUIRE
+++ b/REQUIRE
@@ -1,4 +1,3 @@
julia 0.6
BinDeps
-@osx Homebrew
Compat 0.41.0
diff --git a/deps/build.jl b/deps/build.jl
@mnacamura
mnacamura / eliminate-homebrew-dependency.nix
Last active February 12, 2018 02:46
Julia in nixpkgs: managed to handle external dependency on Darwin
#!/usr/bin/env nix-shell --pure
with import <nixpkgs> {};
let
d = version: "v${lib.concatStringsSep "." (lib.take 2 (lib.splitString "." version))}";
extraLibs = [ mbedtls zlib zeromq3 ];
in
stdenv.mkDerivation rec {
name = "julia-${version}-env";
version = julia.version;