gitea-github-sync/default.nix

20 lines
487 B
Nix
Raw Normal View History

2024-10-08 23:34:31 -05:00
{ pkgs, pythonPackages ? (import <nixpkgs> {}).python3Packages }:
pythonPackages.buildPythonPackage {
name = "gitea-github-bridge";
src = ./bridge;
propagatedBuildInputs = [ pythonPackages.flask pythonPackages.requests ];
installPhase = ''
runHook preInstall
mkdir -p $out/${pythonPackages.python.sitePackages}
cp -r . $out/${pythonPackages.python.sitePackages}/bridge
runHook postInstall
'';
shellHook = "export FLASK_APP=bridge";
format = "other";
}