Skip to content

Commit

Permalink
feat: add Nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
kiike committed Apr 17, 2024
1 parent cccdf21 commit 9906d6b
Show file tree
Hide file tree
Showing 3 changed files with 429 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,39 @@ To install the latest development version

.. code:: bash
python -m pip install papis-zotero@https://github.com/papis/papis-zotero.git#egg=papis-zotero
python -m pip install papis-zotero@https://github.com/papis/papis-zotero.git#egg=papis-zotero
For Nix or NixOS users, a ``flake.nix`` is available for use. It currently
provides a ``devShell`` configuration for use with ``nix develop``, as well as
packages for `nix shell` or for installation. While the `devShell` is ready to
use when you activate a develop shell, for installation you might want to do
something like

.. code:: nix
{
pkgs,
inputs,
...
}: {
home.packages = with pkgs; [
(
python3.withPackages
(
_ps: [
inputs.papis.packages.${system}.default
inputs.papis-zotero.packages.${system}.default
]
)
)
# Here you can list other packages, such as
# typst
# hayagriva
# zotero_7
];
}




Development
-----------
Expand Down
258 changes: 258 additions & 0 deletions flake.lock

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

Loading

0 comments on commit 9906d6b

Please sign in to comment.