mirror of
https://github.com/nix-community/comma.git
synced 2024-11-28 10:39:39 +03:00
Merge pull request #56 from Janik-Haag/master
This commit is contained in:
commit
4360dbe89b
48
README.md
48
README.md
@ -7,56 +7,20 @@ run it from whatever location it happens to occupy in `nixpkgs` without really t
|
||||
|
||||
## Installation
|
||||
|
||||
- Nix with [Flakes](https://nixos.wiki/wiki/Flakes):
|
||||
comma is in nixpkgs so you can install it just like any other package.
|
||||
|
||||
either install it in your nix environment
|
||||
|
||||
```bash
|
||||
$ nix profile install github:nix-community/comma
|
||||
nix-env -f '<nixpkgs>' -iA comma
|
||||
```
|
||||
|
||||
- No flakes:
|
||||
|
||||
```bash
|
||||
$ nix-env -i -f "https://github.com/nix-community/comma/archive/master.tar.gz"
|
||||
```
|
||||
|
||||
## NixOS installation
|
||||
|
||||
- No flakes:
|
||||
|
||||
replace "v1.2.0" with the latest version
|
||||
or add this snippet to your NixOS configuration.
|
||||
|
||||
```nix
|
||||
environment.systemPackages =
|
||||
let
|
||||
comma = (import (pkgs.fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "comma";
|
||||
rev = "v1.2.0";
|
||||
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||||
})).default;
|
||||
in [ comma ];
|
||||
environment.systemPackages = with pkgs; [ comma ];
|
||||
```
|
||||
|
||||
|
||||
- Flakes
|
||||
|
||||
Add
|
||||
|
||||
```nix
|
||||
inputs.comma = {
|
||||
url = "github:nix-community/comma";
|
||||
};
|
||||
```
|
||||
|
||||
to inputs
|
||||
|
||||
and
|
||||
|
||||
`inputs.comma.overlays.default` (or comma without `inputs.` if you use explicit input arguments)
|
||||
|
||||
to nixpkgs.overlays
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user