Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: add default.nix for nix/nixos users
Browse files Browse the repository at this point in the history
  • Loading branch information
bbangert committed Jul 13, 2016
1 parent 4c3b8b7 commit 62454d6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
with import <nixpkgs> {}; {
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 '<nixpkgs>')/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
'';
};
}

0 comments on commit 62454d6

Please sign in to comment.