2020-12-15 11:17:27 +01:00
# My Nix Packages
2020-12-12 19:54:21 +01:00
2020-12-15 11:17:27 +01:00
This Nix derivation provides an attribute set with each package referenced by its name to easily install the packages I publish.
## Quick try
2021-11-20 19:17:21 +01:00
To quickly try a package `${PACKAGE_NAME}` from the latest version of this repository, you can issue on the command line :
2020-12-15 11:17:27 +01:00
```bash
2021-11-20 19:17:21 +01:00
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz' -i ${PACKAGE_NAME}
```
It's easy to pin a precise version by replacing `main` by the tag your interested in like so :
```bash
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.2.tar.gz' -i ${PACKAGE_NAME}
2020-12-15 11:17:27 +01:00
```
## Declarative setup
2021-11-20 19:17:21 +01:00
To use this repository declaratively from within a nix expression (say, in your `/etc/nixos/configuration.nix` ) instead of from the command line, you can include the following snippet :
2020-12-15 11:17:27 +01:00
```nix
let
tissevertpkgs = import (
2021-11-20 19:17:21 +01:00
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz
2020-12-15 11:17:27 +01:00
) {};
in
```
2021-11-20 19:17:21 +01:00
Then, anywhere where you select packages, for instance in `environment.systemPackages` or in your `users.users.<name>.packages` , my packages are available within the attribute set `tissevertpkgs` like this for instance :
2020-12-15 11:17:27 +01:00
```nix
2021-11-20 19:17:21 +01:00
packages = [ tissevertpkgs.SJW ]
2020-12-15 11:17:27 +01:00
```
## Current package selection
- [hablo ](/Tissevert/hablo )
- [SJW ](/Tissevert/SJW )