A Nix derivation to easily install the packages I publish.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

2 years ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. # My Nix Packages
  2. This Nix derivation provides an attribute set with each package referenced by its name to easily install the packages I publish.
  3. ## Quick try
  4. To quickly try a package `${PACKAGE_NAME}` from the latest version of this repository, you can issue on the command line :
  5. ```bash
  6. nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz' -i ${PACKAGE_NAME}
  7. ```
  8. It's easy to pin a precise version by replacing `main` by the tag your interested in like so :
  9. ```bash
  10. nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.2.tar.gz' -i ${PACKAGE_NAME}
  11. ```
  12. ## Declarative setup
  13. 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 :
  14. ```nix
  15. let
  16. tissevertpkgs = import (
  17. fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz
  18. ) {};
  19. in
  20. ```
  21. 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 :
  22. ```nix
  23. packages = [ tissevertpkgs.SJW ]
  24. ```
  25. ## Current package selection
  26. - [hablo](/Tissevert/hablo)
  27. - [SJW](/Tissevert/SJW)