ok/jj
1
0
Fork 0
forked from mirrors/jj

Add nix installation instructions

This commit is contained in:
Jelle Besseling 2022-02-20 22:53:04 +01:00
parent e25752c746
commit 9fb580b6ee
No known key found for this signature in database
GPG key ID: 9712452E8BE3372E
2 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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";