Skip to content

Commit

Permalink
MVP get us working fully on nixos
Browse files Browse the repository at this point in the history
NB: for now this is linking to a presumed local clone of the
`poetry2nix` repo since part of fixing what was adjusted here needs to
be patched upstream, which means hackin on the p2n repo in tandem B)

Since there's some dependency build issues we need
to tweak the following to get baseline `nix develop` working:
- drop `python-levenshtein` (required by `fuzzywuzzy[speedup]`) for now
  since the overlay and/or wheel install needs to be properly figured
  out.
- build `pyqt5` from src for the moment (since `preferWheel` doesn't
  seem to be workin?) despite it taking forever XD
- add in the `flake.lock` file.
  • Loading branch information
goodboy committed Aug 16, 2023
1 parent 847cb77 commit 6b22024
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 253 deletions.
138 changes: 138 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 11 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

# see https://github.com/nix-community/poetry2nix/tree/master#api
inputs.poetry2nix = {
url = "github:nix-community/poetry2nix";
# url = "github:nix-community/poetry2nix";
# url = "github:K900/poetry2nix/qt5-explicit-deps";
# url = "/home/lord_fomo/repos/poetry2nix";
url = "/home/lord_fomo/repos/poetry2nix";

inputs.nixpkgs.follows = "nixpkgs";
};
Expand Down Expand Up @@ -57,17 +57,14 @@
eventkit = [ "setuptools" ];
ib-insync = [ "setuptools" "flake8" ];
msgspec = [ "setuptools"];
tabcompleter = [ "setuptools" ];
pdbp = [ "setuptools" ];
xonsh = [ "setuptools" ];
pyqt6-sip = [ "setuptools" ];
tabcompleter = [ "setuptools" ];
tractor = [ "setuptools" ];
tricycle = [ "setuptools" ];
trio-typing = [ "setuptools" ];
trio-util = [ "setuptools" ];
tricycle = [ "setuptools" ];
tractor = [ "setuptools" ];
pyqt6-sip = [ "setuptools" ];

# don't need these right?
# tomlkit = [ "setuptools" ];
xonsh = [ "setuptools" ];
};

# auto-generate override entries
Expand Down Expand Up @@ -121,10 +118,10 @@

# see PR from @k900:
# https://github.com/nix-community/poetry2nix/pull/1257
pyqt5-qt5 = prev.pyqt5-qt5.override {
withWebkit = false;
preferWheel = true;
};
# pyqt5-qt5 = prev.pyqt5-qt5.override {
# withWebkit = false;
# preferWheel = true;
# };

# TODO: patch in an override for polars to build
# from src! See the details likely needed from
Expand Down
Loading

0 comments on commit 6b22024

Please sign in to comment.