at least site builds??

This commit is contained in:
Anish Lakhwara 2023-04-23 15:10:36 +10:00
parent 17160e7602
commit 095d14ff24

View file

@ -13,8 +13,7 @@
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
my-python = pkgs.python39;
finalPython = my-python.override { packageOverrides = poonam.overlays.default; };
finalPython = pkgs.python3.override { packageOverrides = poonam.overlays.default; self = finalPython; };
python-with-my-packages = finalPython.withPackages (p: with p; [
jinja2
click
@ -23,12 +22,6 @@
python-ctags3
# other python packages you want in the devShell
]);
python-deps = finalPython.withPackages (p: with p; [
# Packages necessary at runtime to run build script
poonam
jinja2
python-ctags3
]);
in
{
devShell = pkgs.mkShell {
@ -43,11 +36,14 @@
# maybe set more env-vars
'';
};
packages.basant = finalPython.pkgs.pythonPackages.buildPythonApplication {
packages.basant = with finalPython.pkgs; buildPythonApplication {
pname = "basant";
src = ./.;
version = "0.3";
propagatedBuildInputs = [ python-deps ];
propagatedBuildInputs = [ poonam.packages.${system}.poonam jinja2 python-ctags3 ];
passthru = {
python = finalPython; # for running?
};
doCheck = false;
};
packages.site = pkgs.stdenv.mkDerivation {