Skip to content
Snippets Groups Projects
Commit 7ed491d7 authored by Millian Poquet's avatar Millian Poquet
Browse files

doc: update nix info

parent 4f1b2db0
No related branches found
No related tags found
No related merge requests found
...@@ -61,23 +61,23 @@ However, the approach is not robust so it may break when: ...@@ -61,23 +61,23 @@ However, the approach is not robust so it may break when:
### Installation ### Installation
If you are using [Nix](https://nixos.org/) with [flakes enabled](https://nixos.wiki/wiki/Flakes#Enable_flakes), you can directly run the latest version of this code without any installation: If you are using [Nix](https://nixos.org/) with [flakes enabled](https://nixos.wiki/wiki/Flakes#Enable_flakes), you can directly run the latest version of this code without any installation:
```sh ```sh
nix run git+https://gitlab.irit.fr/poquet/lflex-celcat-survival\?ref=main#fetch-ics -- request-file.csv -o out.ics nix run git+https://gitlab.irit.fr/poquet/millian/lflex-celcat-survival\?ref=main#fetch-celcat -- request-file.csv credentials.json --ics /tmp/calendar.ics
``` ```
If you are using [Nix](https://nixos.org/), you can enter a shell where the program is available by typing this command: If you are using [Nix](https://nixos.org/), you can enter a shell where the program is available by typing this command:
```sh ```sh
nix-shell https://gitlab.irit.fr/poquet/lflex-celcat-survival/-/archive/main/lflex-celcat-survival-main.tar.gz -A user-shell nix-shell https://gitlab.irit.fr/poquet/millian/lflex-celcat-survival/-/archive/main/lflex-celcat-survival-main.tar.gz -A user-shell
# then, inside the temporary shell: fetch-ics request-file.csv -o out.ics # then, inside the temporary shell: fetch-celcat request-file.csv credentials.json --ics /tmp/calendar.ics
``` ```
If you are using [Nix](https://nixos.org/) but want to install this software instead: If you are using [Nix](https://nixos.org/) but want to install this software instead:
```sh ```sh
nix-env -f https://gitlab.irit.fr/poquet/lflex-celcat-survival/-/archive/main/lflex-celcat-survival-main.tar.gz -iA lflex_celcat_survival nix-env -f https://gitlab.irit.fr/poquet/millian/lflex-celcat-survival/-/archive/main/lflex-celcat-survival-main.tar.gz -iA lflex_celcat_survival
# then, whenever you want: fetch-ics request-file.csv -o out.ics # then, whenever you want: fetch-celcat request-file.csv credentials.json --ics /tmp/calendar.ics
``` ```
If you are not using [Nix](https://nixos.org/), you can do a local installation via [pip](https://pip.pypa.io/en/stable/): If you are not using [Nix](https://nixos.org/), you can do a local installation via [pip](https://pip.pypa.io/en/stable/):
```sh ```sh
pip install git+https://gitlab.irit.fr/poquet/lflex-celcat-survival pip install git+https://gitlab.irit.fr/poquet/millian/lflex-celcat-survival
# then, whenever you want: fetch-ics request-file.csv -o out.ics # then, whenever you want: fetch-celcat request-file.csv credentials.json --ics /tmp/calendar.ics
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment