Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Last active March 29, 2019 11:03
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/dcc1b538352624ea690d695ee1ff1528 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/dcc1b538352624ea690d695ee1ff1528 to your computer and use it in GitHub Desktop.
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
Copy link

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
Copy link
Author

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

Also I haven't finished this gist.

@CMCDragonkai
Copy link
Author

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

@vakili
Copy link

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