32 lines
687 B
Nix
32 lines
687 B
Nix
{stdenv, writeShellApplication, git, python27}: writeShellApplication rec {
|
|
name = "service1";
|
|
|
|
|
|
#propagatedBuildInputs = [python26Packages.setuptools];
|
|
#nativeBuildInputs = [ jinja2 ];
|
|
#buildInputs = [ jinja2 ];
|
|
runtimeInputs = [git (python27.withPackages(ps: []))];
|
|
|
|
#env = {
|
|
# NIX_CFLAGS_COMPILE="-Wno-incompatible-pointer-types";
|
|
#};
|
|
|
|
text = ''
|
|
if [ ! -d "amo" ]; then
|
|
mkdir amo
|
|
cd amo
|
|
|
|
git clone https://github.com/mozilla/addons-server.git --progress
|
|
cd addons-server
|
|
git switch 8b4423547f932b2d9fa2b5a9c81d399bdc29bd6e --detach --progress
|
|
|
|
cd ../..
|
|
fi
|
|
|
|
cd amo
|
|
cd addons-server
|
|
|
|
python ./manage.py
|
|
'';
|
|
}
|