pollymc/nix/NIX.md

37 lines
758 B
Markdown
Raw Normal View History

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