From 62454d65a85466553d76ab6f4ef3e6bdf9671c40 Mon Sep 17 00:00:00 2001 From: Ben Bangert Date: Fri, 13 May 2016 16:09:55 -0700 Subject: [PATCH] chore: add default.nix for nix/nixos users --- default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..3b55306f --- /dev/null +++ b/default.nix @@ -0,0 +1,21 @@ +with import {}; { + pyEnv = stdenv.mkDerivation { + name = "autopush-env"; + buildInputs = [ stdenv gcc python27Full python27Packages.virtualenv readline libffi openssl openjdk7 gnumake ]; + shellHook = '' + if [ ! -d pypy ] + then + virtualenv -p $(nix-build -A pythonFull '')/bin/python pypy + fi + source pypy/bin/activate + if [ ! -e `pwd`/pypy/bin/pypy ] + then + ln -s `pwd`/pypy/bin/python `pwd`/pypy/bin/pypy + fi + if [ ! -d ddb ] + then + make travis + fi + ''; + }; +}