robinrheem / thehodl

Hold crypto forever.
MIT License
1 stars 1 forks source link

add flake.{nix|lock} for poetry2nix integration #7

Open jhhuh opened 2 years ago

jhhuh commented 2 years ago

Here is a kind of minimal poetry2nix setup (related to #2). You can

> nix develop

to enter your dev setup. A relevant portion you need to understand in flake.nix is just

# ...
        devShell = (pkgs.poetry2nix.mkPoetryEnv {
          projectDir = ./.;
          editablePackageSources = {
            myapp = ./thehodl;
          };
          python = pkgs.${pythonDrvName};
        }).env;
# ...

.