PrismLauncher/packages/nix/NIX.md
cidkid 9bd86f84de
nix: make sure tarball is pointed to proper repo
Co-authored-by: Louis Bettens <lourkeur@users.noreply.github.com>
2022-01-09 08:37:47 -06:00

31 lines
644 B
Markdown

# How to import
To import with flakes use
```nix
inputs = {
polymc.url = "github:PolyMC/PolyMC";
};
...
nixpkgs.overlays = [ inputs.polymc.overlay.${system} ]; ## Within configuration.nix
environment.systemPackages = with pkgs; [ polymc ]; ##
```
To import without flakes use channels:
```
nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc
nix-channel --update polymc
nix-env -iA polymc
```
or alternatively you can use
```
nixpkgs.overlays = [
(import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
];
environment.systemPackages = with pkgs; [ polymc ];
```