nix tutorial
All checks were successful
/ mirror_to_github (push) Successful in 1m33s
/ test (push) Successful in 6s

This commit is contained in:
Leon van Kammen 2025-01-20 15:50:21 +01:00
parent 0a85da40ef
commit 3989ca1bbf

View file

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