mirror of
https://github.com/martinvonz/jj.git
synced 2024-09-11 05:45:30 +03:00
Add nix installation instructions
This commit is contained in:
parent
e25752c746
commit
9fb580b6ee
16
README.md
16
README.md
@ -156,6 +156,22 @@ name = "Martin von Zweigbergk"
|
||||
email = "martinvonz@google.com"
|
||||
```
|
||||
|
||||
### Nix OS
|
||||
|
||||
If you're on Nix OS you can use the flake for this repository.
|
||||
For example, if you want to run `jj` loaded from the flake, use:
|
||||
|
||||
```shell script
|
||||
nix run 'github:martinvonz/jj'
|
||||
```
|
||||
|
||||
You can also add this flake url to your system input flakes. Or you can
|
||||
install the flake to your user profile:
|
||||
|
||||
```shell script
|
||||
nix profile install 'github:martinvonz/jj'
|
||||
```
|
||||
|
||||
|
||||
## Getting started
|
||||
|
||||
|
@ -111,6 +111,10 @@
|
||||
};
|
||||
packages.${system}.jujutsu = pkgs.jujutsu;
|
||||
defaultPackage.${system} = self.packages.${system}.jujutsu;
|
||||
defaultApp.${system} = {
|
||||
type = "app";
|
||||
program = "${pkgs.jujutsu}/bin/jj";
|
||||
};
|
||||
checks.${system}.jujutsu = pkgs.jujutsu.overrideAttrs ({ ... }: {
|
||||
cargoBuildType = "debug";
|
||||
cargoCheckType = "debug";
|
||||
|
Loading…
Reference in New Issue
Block a user