Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Developing with Nix (Nodejs, Haskell, Python, PHP, Emscripten) #nix #nixpkgs #nixos #python

Developing with Nix

This has been moved to the Matrix AI blog: https://matrix.ai/2018/03/24/developing-with-nix/

Note that if you just to compile a simple C program, and you don't want to fiddle with environments:

nix-shell --packages stdenv

That's enough to enter an environment with stdenv.

@danbst

This comment has been minimized.

Copy link

@danbst danbst commented Oct 22, 2017

I've read only the Python section. You may want to add

unset SOURCE_DATE_EPOCH

to shellhook, because otherwise pip can fail with Zip error (NixOS/nixpkgs@6f1551d)

@CMCDragonkai

This comment has been minimized.

Copy link
Owner Author

@CMCDragonkai CMCDragonkai commented Oct 22, 2017

@danbst Doesn't that link say to set SOURCE_DATE_EPOCH to an actual date somewhere?

Also I haven't finished this gist.

@CMCDragonkai

This comment has been minimized.

Copy link
Owner Author

@CMCDragonkai CMCDragonkai commented Mar 20, 2018

@danbst You are right. You do need unset SOURCE_DATE_EPOCH in the shellHook for Python packages.

@vakili

This comment has been minimized.

Copy link

@vakili vakili commented Mar 29, 2019

Blogpost url has changed to https://matrix.ai/blog/developing-with-nix/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.