fix: start scipt

This commit is contained in:
roshan 2023-02-19 20:19:14 +05:30
parent 2dcf8565f6
commit 42ddb03af0
2 changed files with 10 additions and 6 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
__pycache__
*.session
*.session
result

View file

@ -19,9 +19,15 @@
beautifulsoup4
]);
ignouDrv = pkgs.stdenv.mkDerivation {
ignouScript = pkgs.writeShellScriptBin "start-bot" ''
cd ${ignou}
${pyEnv}/bin/python3 -m bot'';
ignou = pkgs.stdenv.mkDerivation {
pname = "ignou-telegram-bot";
version = "2.0";
runtimeDependencies = [ pyEnv ];
src = ./.;
installPhase = ''
mkdir -p $out/bot
@ -29,15 +35,12 @@
'';
};
ignouScript = pkgs.writeShellScriptBin "start-bot" ''
cd ${ignouDrv}
${pyEnv}/bin/python3 -m bot'';
in rec {
packages.default = pkgs.buildEnv {
name = "${pname}-${version}";
paths = [ ignouDrv pyEnv ];
paths = [ ignou ignouScript ];
};
devShell = pkgs.mkShell {