This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
31
templates/dev/flask-hello/nix/package.nix
Normal file
31
templates/dev/flask-hello/nix/package.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
python3,
|
||||
...
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "flask_hello";
|
||||
version = "0.1.0";
|
||||
pyproject = true;
|
||||
|
||||
build-system = [ python3.pkgs.setuptools ];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
flask
|
||||
];
|
||||
|
||||
src = ../.;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -r $src/${pname} $out/
|
||||
cp $src/app.py $out/
|
||||
chmod +x $out/app.py
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue