2022-01-08 20:57:47 +05:30
|
|
|
# How to import
|
|
|
|
|
|
|
|
To import with flakes use
|
|
|
|
```nix
|
|
|
|
inputs = {
|
|
|
|
polymc.url = "github:PolyMC/PolyMC";
|
|
|
|
};
|
|
|
|
|
|
|
|
...
|
|
|
|
|
2022-01-09 15:42:55 +05:30
|
|
|
nixpkgs.overlays = [ inputs.polymc.overlay.${system} ]; ## Within configuration.nix
|
2022-01-09 19:47:52 +05:30
|
|
|
environment.systemPackages = with pkgs; [ polymc ]; ##
|
2022-01-08 20:57:47 +05:30
|
|
|
```
|
|
|
|
|
|
|
|
To import without flakes use channels:
|
|
|
|
|
|
|
|
```
|
2022-01-09 20:05:52 +05:30
|
|
|
nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc
|
|
|
|
nix-channel --update polymc
|
2022-01-09 19:45:47 +05:30
|
|
|
nix-env -iA polymc
|
2022-01-08 20:57:47 +05:30
|
|
|
```
|
|
|
|
|
2022-01-09 19:45:47 +05:30
|
|
|
or alternatively you can use
|
|
|
|
|
|
|
|
```
|
|
|
|
nixpkgs.overlays = [
|
2022-01-09 20:07:47 +05:30
|
|
|
(import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
|
2022-01-09 19:47:52 +05:30
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ polymc ];
|
2022-01-08 20:57:47 +05:30
|
|
|
```
|