aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/tomlc99/README.md2
-rw-r--r--nix/NIX.md26
2 files changed, 16 insertions, 12 deletions
diff --git a/libraries/tomlc99/README.md b/libraries/tomlc99/README.md
index d2776448..103024f0 100644
--- a/libraries/tomlc99/README.md
+++ b/libraries/tomlc99/README.md
@@ -150,7 +150,7 @@ call was successful. If so, you may proceed to read the value
corresponding to the type of the content.
For example:
-```
+```c
toml_datum_t host = toml_string_in(tab, "host");
if (host.ok) {
printf("host: %s\n", host.u.s);
diff --git a/nix/NIX.md b/nix/NIX.md
index 1ceba9a3..39c67f57 100644
--- a/nix/NIX.md
+++ b/nix/NIX.md
@@ -2,19 +2,21 @@
To import with flakes use
```nix
-inputs = {
- polymc.url = "github:PolyMC/PolyMC";
-};
+{
+ inputs = {
+ polymc.url = "github:PolyMC/PolyMC";
+ };
...
-nixpkgs.overlays = [ inputs.polymc.overlay ]; ## Within configuration.nix
-environment.systemPackages = with pkgs; [ polymc ]; ##
+ nixpkgs.overlays = [ inputs.polymc.overlay ]; ## Within configuration.nix
+ environment.systemPackages = with pkgs; [ polymc ]; ##
+}
```
To import without flakes use channels:
-```
+```sh
nix-channel --add https://github.com/PolyMC/PolyMC/archive/master.tar.gz polymc
nix-channel --update polymc
nix-env -iA polymc
@@ -22,10 +24,12 @@ nix-env -iA polymc
or alternatively you can use
-```
-nixpkgs.overlays = [
- (import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
-];
+```nix
+{
+ nixpkgs.overlays = [
+ (import (builtins.fetchTarball "https://github.com/PolyMC/PolyMC/archive/develop.tar.gz")).overlay
+ ];
-environment.systemPackages = with pkgs; [ polymc ];
+ environment.systemPackages = with pkgs; [ polymc ];
+}
```