pollymc/nix/NIX.md

37 lines
677 B
Markdown
Raw Normal View History

2022-01-08 09:27:47 -06:00
# How to import
To import with flakes use
2022-01-08 09:27:47 -06:00
```nix
{
inputs = {
2022-08-19 13:56:46 +01:00
pollymc.url = "github:fn2006/PollyMC";
};
2022-01-08 09:27:47 -06:00
...
2022-08-19 13:56:46 +01:00
nixpkgs.overlays = [ inputs.pollymc.overlay ]; ## Within configuration.nix
environment.systemPackages = with pkgs; [ pollymc ]; ##
}
2022-01-08 09:27:47 -06:00
```
To import without flakes use channels:
```sh
2022-08-19 13:56:46 +01:00
nix-channel --add https://github.com/fn2006/PollyMC/archive/master.tar.gz pollymc
nix-channel --update pollymc
nix-env -iA pollymc
2022-01-08 09:27:47 -06:00
```
2022-01-09 08:15:47 -06:00
or alternatively you can use
```nix
{
nixpkgs.overlays = [
2022-08-19 13:56:46 +01:00
(import (builtins.fetchTarball "https://github.com/fn2006/PollyMC/archive/develop.tar.gz")).overlay
];
2022-01-09 08:17:52 -06:00
2022-08-19 13:56:46 +01:00
environment.systemPackages = with pkgs; [ pollymc ];
}
2022-01-13 15:43:29 +02:00
```