nix tutorial
This commit is contained in:
parent
0a85da40ef
commit
3989ca1bbf
1 changed files with 17 additions and 9 deletions
26
README.md
26
README.md
|
|
@ -18,15 +18,6 @@ See [the wiki here](https://forgejo.isvery.ninja/xrsh/xrsh/wiki/Home#milestones)
|
||||||
|
|
||||||
> NOTE: installation is optional: just surf to the public version [here](https://xrsh.isvery.ninja)
|
> NOTE: installation is optional: just surf to the public version [here](https://xrsh.isvery.ninja)
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>install using nix</summary>
|
|
||||||
|
|
||||||
[NIX](https://nixos.org/) is a convenient way to install or develop xrsh:
|
|
||||||
|
|
||||||
1. run `nix-run -p xrsh --run "xrsh.com"` (pass `-p XXXX` to specify non-default 8080 port )
|
|
||||||
2. build it when package does not exist: `nix-build -E "with import <nixpkgs> { }; callPackage ./xrsh.nix"`
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>install without nix</summary>
|
<summary>install without nix</summary>
|
||||||
|
|
||||||
|
|
@ -36,6 +27,23 @@ See [the wiki here](https://forgejo.isvery.ninja/xrsh/xrsh/wiki/Home#milestones)
|
||||||
4. run `./xrsh.com` in (any) shell
|
4. run `./xrsh.com` in (any) shell
|
||||||
5. Profit! ✔
|
5. Profit! ✔
|
||||||
</details>
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary>install using nixos</summary>
|
||||||
|
|
||||||
|
[NIX](https://nixos.org/) is a convenient way to install or develop xrsh:
|
||||||
|
|
||||||
|
1. `nix-shell -p xrsh thttpd`
|
||||||
|
2. `thttpd -p 8080 -d /nix/store/5q4vd50gmh52jh48z62ln1j05xzfh1fz-xrsh-0.142`
|
||||||
|
3. point your browser to `localhost:8080`
|
||||||
|
4. profit!
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>build using nix</summary>
|
||||||
|
|
||||||
|
1. `nix-build -E "with import <nixpkgs> { }; callPackage ./nix/xrsh-package.nix"`
|
||||||
|
2. optionally see the other nix-files in `nix`-folder
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>launch different .iso / modify files</summary>
|
<summary>launch different .iso / modify files</summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue