mirror of
https://github.com/nix-community/comma.git
synced 2024-10-06 00:08:31 +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
|
## 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
|
```bash
|
||||||
$ nix profile install github:nix-community/comma
|
nix-env -f '<nixpkgs>' -iA comma
|
||||||
```
|
```
|
||||||
|
|
||||||
- No flakes:
|
or add this snippet to your NixOS configuration.
|
||||||
|
|
||||||
```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
|
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
environment.systemPackages =
|
environment.systemPackages = with pkgs; [ comma ];
|
||||||
let
|
|
||||||
comma = (import (pkgs.fetchFromGitHub {
|
|
||||||
owner = "nix-community";
|
|
||||||
repo = "comma";
|
|
||||||
rev = "v1.2.0";
|
|
||||||
sha256 = "0000000000000000000000000000000000000000000000000000";
|
|
||||||
})).default;
|
|
||||||
in [ 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
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user