Skip to content

Commit

Permalink
flake: add option for extraPackages
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 6, 2024
1 parent 5cdb870 commit 0d308e8
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,29 @@
click
];
in {
packages.default = python3.buildPythonPackage {
pname = name;
version = version;
src = ./.;
format = "pyproject";
packages.default = {extraPackages ? []}:
python3.buildPythonPackage {
pname = name;
version = version;
src = ./.;
format = "pyproject";

nativeBuildInputs = with pkgs; [
poetry
];
nativeBuildInputs = with pkgs; [
poetry
];

pythonRelaxDeps = [
"textual"
"tzlocal"
"platformdirs"
];
pythonRelaxDeps = [
"textual"
"tzlocal"
"platformdirs"
];

buildInputs = mainPkgs;
propagatedBuildInputs = mainPkgs;
buildInputs = mainPkgs ++ extraPackages;
propagatedBuildInputs = mainPkgs;

# TODO: enable this
doCheck = false;
};
# TODO: enable this
doCheck = false;
};

# Deps: Devshell
devShell = pkgs.mkShell {
Expand Down

0 comments on commit 0d308e8

Please sign in to comment.