37 lines
758 B
Markdown
Raw Permalink 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 = {
prismlauncher.url = "github:PrismLauncher/PrismLauncher";
};
2022-01-08 09:27:47 -06:00
...
nixpkgs.overlays = [ inputs.prismlauncher.overlay ]; ## Within configuration.nix
environment.systemPackages = with pkgs; [ prismlauncher ]; ##
}
2022-01-08 09:27:47 -06:00
```
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 09:27:47 -06:00
```
2022-01-09 08:15:47 -06:00
or alternatively you can use
```nix
{
nixpkgs.overlays = [
(import (builtins.fetchTarball "https://github.com/PrismLauncher/PrismLauncher/archive/develop.tar.gz")).overlay
];
2022-01-09 08:17:52 -06:00
environment.systemPackages = with pkgs; [ prismlauncher ];
}
2022-01-13 15:43:29 +02:00
```