From fba20e2cfb2bcf10b9987f74a3d454b59b079fa6 Mon Sep 17 00:00:00 2001 From: txtsd Date: Tue, 12 Jul 2022 21:04:57 +0530 Subject: [PATCH] chore(markdown): MD040 Fenced code blocks should have a language specified Signed-off-by: txtsd --- libraries/tomlc99/README.md | 2 +- nix/NIX.md | 26 +++++++++++++++----------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/libraries/tomlc99/README.md b/libraries/tomlc99/README.md index d2776448d..103024f0a 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 1ceba9a3c..39c67f577 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 ]; +} ```