at least site builds??
This commit is contained in:
parent
17160e7602
commit
095d14ff24
16
flake.nix
16
flake.nix
|
@ -13,8 +13,7 @@
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
my-python = pkgs.python39;
|
finalPython = pkgs.python3.override { packageOverrides = poonam.overlays.default; self = finalPython; };
|
||||||
finalPython = my-python.override { packageOverrides = poonam.overlays.default; };
|
|
||||||
python-with-my-packages = finalPython.withPackages (p: with p; [
|
python-with-my-packages = finalPython.withPackages (p: with p; [
|
||||||
jinja2
|
jinja2
|
||||||
click
|
click
|
||||||
|
@ -23,12 +22,6 @@
|
||||||
python-ctags3
|
python-ctags3
|
||||||
# other python packages you want in the devShell
|
# 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
|
in
|
||||||
{
|
{
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
|
@ -43,11 +36,14 @@
|
||||||
# maybe set more env-vars
|
# maybe set more env-vars
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
packages.basant = finalPython.pkgs.pythonPackages.buildPythonApplication {
|
packages.basant = with finalPython.pkgs; buildPythonApplication {
|
||||||
pname = "basant";
|
pname = "basant";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
version = "0.3";
|
version = "0.3";
|
||||||
propagatedBuildInputs = [ python-deps ];
|
propagatedBuildInputs = [ poonam.packages.${system}.poonam jinja2 python-ctags3 ];
|
||||||
|
passthru = {
|
||||||
|
python = finalPython; # for running?
|
||||||
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
};
|
};
|
||||||
packages.site = pkgs.stdenv.mkDerivation {
|
packages.site = pkgs.stdenv.mkDerivation {
|
||||||
|
|
Loading…
Reference in a new issue