2022-01-08 20:57:47 +05:30
|
|
|
# How to import
|
|
|
|
|
|
|
|
To import with flakes use
|
2022-07-13 00:23:51 +05:30
|
|
|
|
2022-01-08 20:57:47 +05:30
|
|
|
```nix
|
2022-07-12 21:04:57 +05:30
|
|
|
{
|
|
|
|
inputs = {
|
2022-08-19 18:26:46 +05:30
|
|
|
pollymc.url = "github:fn2006/PollyMC";
|
2022-07-12 21:04:57 +05:30
|
|
|
};
|
2022-01-08 20:57:47 +05:30
|
|
|
|
|
|
|
...
|
|
|
|
|
2022-08-19 18:26:46 +05:30
|
|
|
nixpkgs.overlays = [ inputs.pollymc.overlay ]; ## Within configuration.nix
|
|
|
|
environment.systemPackages = with pkgs; [ pollymc ]; ##
|
2022-07-12 21:04:57 +05:30
|
|
|
}
|
2022-01-08 20:57:47 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
To import without flakes use channels:
|
|
|
|
|
2022-07-12 21:04:57 +05:30
|
|
|
```sh
|
2022-08-19 18:26:46 +05:30
|
|
|
nix-channel --add https://github.com/fn2006/PollyMC/archive/master.tar.gz pollymc
|
|
|
|
nix-channel --update pollymc
|
|
|
|
nix-env -iA pollymc
|
2022-01-08 20:57:47 +05:30
|
|
|
```
|
|
|
|
|
2022-01-09 19:45:47 +05:30
|
|
|
or alternatively you can use
|
|
|
|
|
2022-07-12 21:04:57 +05:30
|
|
|
```nix
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
2022-08-19 18:26:46 +05:30
|
|
|
(import (builtins.fetchTarball "https://github.com/fn2006/PollyMC/archive/develop.tar.gz")).overlay
|
2022-07-12 21:04:57 +05:30
|
|
|
];
|
2022-01-09 19:47:52 +05:30
|
|
|
|
2022-08-19 18:26:46 +05:30
|
|
|
environment.systemPackages = with pkgs; [ pollymc ];
|
2022-07-12 21:04:57 +05:30
|
|
|
}
|
2022-01-13 19:13:29 +05:30
|
|
|
```
|